This has nothing to do with PHP by the way!
That is called embedded fonts
. I've used that once.
I was using a software called WEFT
This tool will convert the font file into an .eot
format which can be read by your webserver.
By using this technique the font will be loaded from the webserver and has not to be installed on the system of the visitor!
After all it will generate a css code like this (example):
- Code: Select all
<!-- /* $WEFT -- Created by: you on 27-04-2003 -- */
However, this technique only works with Microsoft Internet Explorer.
Well... you better make a search about "embedded fonts"