Skip to main content
December 2, 2007
Question

Fonts and PHP

  • December 2, 2007
  • 2 replies
  • 309 views
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 has been closed for replies.

2 replies

Inspiring
December 3, 2007
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
Inspiring
December 2, 2007
.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