|
-
Sep 20th, 2002, 01:23 PM
#1
Thread Starter
Frenzied Member
(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.
-
Sep 20th, 2002, 05:11 PM
#2
Frenzied Member
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.
-
Sep 20th, 2002, 05:16 PM
#3
Thread Starter
Frenzied Member
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.
-
Sep 21st, 2002, 04:16 AM
#4
Frenzied Member
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.
-
Sep 21st, 2002, 09:02 PM
#5
Junior Member
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".
-
Sep 23rd, 2002, 06:16 PM
#6
Fanatic Member
u cant force them to download it, but u can start the download, and then the decide whter they click cancel or not
-
Sep 23rd, 2002, 10:02 PM
#7
Black Cat
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|