Results 1 to 10 of 10

Thread: How to install a special font on server ?

Hybrid View

  1. #1
    Join Date
    Jun 2007

    How to install a special font on server ?

    Hi guys,

    I'm using a special font that I downloaded. I put that font in the C:\Window\Fonts directory and it works fine on my computer. I need to make sure that it works on the server so that anyone accesses my pages can see this font. I'm thinking of uploading this font file to the server but I don't know how to instruct the server to use this font. Just like locally, you can dump the font you like to the C:\Window\Fonts directory and it implicitly works for you and you don't have to specify the path to the font. Is there a way to do this on the server. If you have other or better solutions, please let me know. Thanks.

  2. #2
    Join Date
    Aug 2004
    Web browsers do not use fonts from the server, they use those that are available to them on the client device where they are running. There are some ways to supply the client with a font from the server: do a web search on "embedded web fonts" or something like that. However, even if the user's browser supports it (and it's not disabled by their security settings), there can still be some down sides to this: namely the increased download time the first time a user accesses your page, as well as possible copyright/licensing issues for the font in question.

    Generally your best bet is to use the more commonly available fonts for the main textual elements of your page, being sure to use an appropriate generic font-family for the final option; and then for a few special things like logos and maybe major headings, create images using the desired uncommon font (being sure to use alt attribute values for text-base browsers and search engines).
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Nov 2002
    Baltimore, Maryland
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  4. #4
    Join Date
    Mar 2005
    Sydney, Australia
    Quote Originally Posted by Charles View Post
    Which will of course only work for those of your visitors using IE and may stop the other font options for working in other browsers leaving everyone not using IE to see the text in their browser default font (usuallt Times New Roman).

  5. #5
    Join Date
    Nov 2002
    Baltimore, Maryland
    Won't stop other font options working in other browsers and won't cause any ill side effects for the non-MSIE folks. There are some things to fancy up your site that will cause unintended bad things for some people, this is not one of them.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  6. #6
    Join Date
    Apr 2009
    Leeds, England
    I created a site on which I wanted to use a specific font which, pretty-much nobody has installed, so I just wrote the usual code, I used a secondary (more common) font, so if my font wasn't installed, another suitable font would be used. Then I just put a link allowing the user to download it if they really felt the need. The way I actually came across this special font in the first place was by downloading it from another website

  7. #7
    Join Date
    Nov 2002
    Baltimore, Maryland
    Hold on there, you might be commiting a crime, distributing stolen property. Not that I'm against commiting the occasional crime but it's not wise to do it publically and with a paper trail. If you're using Windows, and if you already haven't, install the Font properties extension. Then right click on the font to check if the font's copyright permits redistribution.

    The nice thing about WEFT, to keep you out of trouble it won't let you violate a font's copyright.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  8. #8
    Join Date
    Apr 2009
    Leeds, England
    That's a good point; my font is ok; only editing is restricted, redistribution is fine, but I'm a naughty boy for not checking first

  9. #9
    Join Date
    Mar 2013
    Maine, USA

    resolved How to load a font from the server

    I don't know why this technique is not generally known, but it is easy to load fonts from the server, so they don't have to have been already installed on the visitor's system.

    The trick is to make it work cross-browser for all modern browsers.

    To handle both modern browsers (using CSS3) and IE (using WEFT), you can load fonts from the webserver using both methods as follows:

    /* Load font for IE only */
    @font-face {font-family: Font Name;font-style: normal; font-weight: normal;
    src: url(FontName.eot)}
    /* Load font for other browsers */
    @font-face {font-family: Font Name;src: url(FontName.ttf)}
    /* Specify default font and any other styles */
    #id {font-family:Font Name,sans-serif}
    <p id="id">Text to be displayed</p>
    Note that the "ttf" file for WEFT must be copied to the Windows\Fonts folder prior to running WEFT to generate the "eot" file from it.

    This has been tested and seems to work.

  10. #10
    Join Date
    Apr 2013
    That sounds good. Any thing but the same **** over again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.18457 seconds
  • Memory Usage 3,209KB
  • Queries Executed 13 (?)
More Information
Template Usage (30):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (10)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (27):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./includes/functions_threadedmode.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (71):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates