Skip to main content
Dec 2, 2007 8:17 PM UTC
Question

Fonts and PHP

Is there a way to use a specific font that is uploaded on a server so that when I create a php page that it uses that font. Can this be done through CSS?

I remember when I had created something in Microsoft Word for the web and uploaded the file and it's folder it contained the font. Can this be done?
This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Inspiring
Dec 3, 2007 3:09 PM UTC
On Sun, 2 Dec 2007 20:17:02 +0000 (UTC), "AdonaiEchad"
<webforumsuser@macromedia.com> wrote:

>Is there a way to use a specific font that is uploaded on a server so that when
>I create a php page that it uses that font. Can this be done through CSS?

If you're talking about a limited amount of text, like headings, it can
be done using a technique called dynamic text replacement, which will
replace the text with dynamically generated images. See
http://www.stewartspeak.com/projects/dtr/

If you're talking about the body text, then Micha is right. There is no
practical way to do it.

Gary
Translate
Inspiring
Dec 2, 2007 9:35 PM UTC
.oO(AdonaiEchad)

>Is there a way to use a specific font that is uploaded on a server so that when
>I create a php page that it uses that font. Can this be done through CSS?

No. Currently there's no standards-compliant way to embed fonts into a
CSS (maybe it will be possible with CSS 3). Of course you can use any
font you like in images, even images created by scripts, but of course
that's not advisable for normal text on a web page.

Micha
Translate