Results 1 to 7 of 7

Thread: (HTML & CSS) What to do if user doesn't have desired font

  1. #1

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057

    (HTML & CSS) What to do if user doesn't have desired font

    What happens if the user doesn't have the font I am using in CSS? I understand that it will go to the next font in line but what if I really want them to see it with the font specified?
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  2. #2
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I don't think you can do a lot other than suppling back up fonts. Also you should supply a generic font as a last precaution (e.g. Tahoma's font-family is sans-serif), so for example you could have:

    Code:
    style="font-family:Tahoma, Verdana, 'Trebuchet MS', sans-serif;"
    And if the browser didn't have any of those fonts it would just use any sans-serif font it can find, so hopefully it would still be similar to the one you want. Take a look at http://www.w3.org/TR/REC-CSS2/fonts....-font-families for all the generic font families you can use.

  3. #3

    Thread Starter
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    I followed up behind one developer that put the fonts (files) he was using in the directory with the page... does that do anything or was that so people could d/l them?
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    I don't think the browser will automatically download them, but there is a way to embed fonts on your page so that the user's machine will automatically download them. I don't know how to do it, or what (if any) browsers support them. http://www.w3.org/ must have some info on it.

  5. #5
    Junior Member
    Join Date
    Aug 2002
    Location
    Brazil
    Posts
    29
    I don't know any way to force the browser to download the font you want. My suggestion is include a friendly line in the page asking the visitor to "download the font for best viewing".

  6. #6
    Fanatic Member Mushroom Realm's Avatar
    Join Date
    Mar 2002
    Location
    Murrieta, California
    Posts
    650
    u cant force them to download it, but u can start the download, and then the decide whter they click cancel or not

  7. #7
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Both IE and Netscape has ways of adding fonts at one time, both were different methods of packaging the fonts, and both were limited to the scope of the web page for security and other issues (Win 9x has limits on the number of fonts installed before it uses up all its resources, I think). Like Rick, I never tried to figure it out.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

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



Click Here to Expand Forum to Full Width