Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Fonts and PHP

Guest
Dec 02, 2007 Dec 02, 2007

Copy link to clipboard

Copied

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?
TOPICS
Server side applications

Views

286
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 02, 2007 Dec 02, 2007

Copy link to clipboard

Copied

.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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 03, 2007 Dec 03, 2007

Copy link to clipboard

Copied

LATEST
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

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines