Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fonts - Where do they need to be

Status
Not open for further replies.

bmdev

Programmer
May 13, 2003
29
US
Hello,

Our mgmt wants to use a font in some html pages that most users won't have on their machines. If we put that font on the web server and into the html, will the browsers display it correctly or would the browser machines need to have the font as well?

Thanks!!
 

The users machine would need the font as well. Consider one of these options:

1. Provide the font to the user for download (messy - who would bother?)

2. Use web fonts (not supported in all browsers, but would do the job)

3. Create images (either statically or dynamically with server-side code) using the font you want (sloppy - too much longer to download over regular text)

4. Specify your font using CSS, but then "backup" fonts in case the user doesn't have yours (yes!).. for example:

Code:
body {
   font-family: "Your Font Name", BackupFont1, "Backup Font 2", sans-serif;
}

Hope this helps,
Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
As an addendum to Dan's complete post, you could embed the font and use that as the first option. IE supports embedding while other browsers I believe don't. However, by following Dan's suggestion, IE can show the embedded font, other browsers can look for that rare font, then go for another backup and at the end for the generic one. FAQs on how to embed fonts are here:
 
If you're considering providing the font for download, be aware that most fonts are copyright and your license to use them does not extend to providing them for download.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'

Essex Steam UK for steam enthusiasts
 
Great answers! You guys saved me a bunch of work.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top