Jump to content

Using .ttf Files


skaterdav85
 Share

Recommended Posts

How do you utilize a .ttf file? I downloaded a new font and i want to use it, so Im wondering if this is something I need to do through CSS. I know i can use the file to change text through the php GD library, but that is one long function to change font and isn't very efficient for a paragraph of text. Anyone know how to go about doing this?

Link to comment
Share on other sites

The font support in CSS is very limited, there is @font-face, but it is very badly supported. The only other ways are through images, either static or dynamic (i.e. with PHP), or through Flash (e.g. sIFR).

Link to comment
Share on other sites

The font support in CSS is very limited, there is @font-face, but it is very badly supported. The only other ways are through images, either static or dynamic (i.e. with PHP), or through Flash (e.g. sIFR).
what do you mean by @font-face? and how is it badly supported?
Link to comment
Share on other sites

what do you mean by @font-face? and how is it badly supported?
http://www.w3.org/TR/css3-fonts/#the-font-face-ruleAnd it's badly supported as in not many browsers (i.e. almost none at all) actually implement it.
Link to comment
Share on other sites

You just have to accept that people only have certain fonts installed on their computers. Usually the reason you want a fancy font is for a title or header. You can use images with alternate text, or better: <h1> or <h2> tags with a background image and some text that's pushed out of view with the CSS text-indent property.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...