Click here to Skip to main content
15,887,453 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I wish to present a web page in a specific font.

However, most people will not have this font, so is it possible to, for the want of a better word, 'Impose' this font.

I am thinking it may be necessary to put the font on the server and somehow point to it from within the page, perhaps some Jscript?

Any ideas?
Posted

There are a few ways to do this. The first way (and the way that's recommended) is to use font fallbacks and degrade nicely. The second way is to use Flash to display the font (there are a few examples of this on the web). The third way is to use an embedded font referenced from a stylesheet. There's an example on how to do this here[^].
 
Share this answer
 
Comments
Dalek Dave 26-May-10 16:37pm    
Spot on, exactly what I need and a simple explanation on how to implement it.

Thanks Pal!
Pete O'Hanlon 26-May-10 16:38pm    
You're welcome mate.
Let Me Google That For You [^].

kidding, Dave, kidding...
 
Share this answer
 
Comments
Dalek Dave 26-May-10 16:39pm    
Cheers Carlo, like Pete's answer, a simple easy to do thing.

I have never had to do it before so was unaware of what to even google for.

Anyway, why do a random google when there is a perfectly decent bunch of geeks right here :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900