How to embed a True Type Font on your web page.
You may have an interesting or weird font type that you want on your web page, but in order for other people to be able to see this font you will need to embed it on your web page. Why? Because when a visitor views a web site, the only fonts that will display are those installed on the visitors system!
So if you want either a weird gothic font or an old Celtic font such as in the main logo of my site (which is actually an image) you will need to either display the font in an image or embed the font in your web page.
NOTE:: Although this guide is new it is based on old information. I will try to update it as soon as I have time.
Embedding the font:
To embed a font type on a Web page first select the font you
want to embed, either from your hard drive or download it from
You need to download software to create an embedded font file which can be in two formats .pfr or .eot.
Into the HEAD section of your document insert:
Example with True Type
<link rel = "fontdef" src="cool-font.pfr">
To work in IE4 and above, you need to add a pointer to an ActiveX control immediately after the LINK tag OR ELSE create an OpenType file for Explorer and refer to both on your page.
TrueDoc fonts stay within the browser: you can't download them to your system
Example with Open Type
This method works in IE5 & IE6 but is not supported by Firefox/Opera.
A List Apart have an article on Dynamic Text Replacement which presents an interesting method for replacing blocks of text such as headers with dynamic images. Worth checking out.