dadamssg Posted April 21, 2009 Share Posted April 21, 2009 do i upload a font i've downloaded in my public_html directory and then point to it in my css? font-family: fontfile.ttf; im not real sure of the extension of fonts either....doubt .ttf is right Quote Link to comment Share on other sites More sharing options...
SuperBlue Posted April 22, 2009 Share Posted April 22, 2009 Browser support is very poor at the moment, you can (according to CSS2) use the @font-face selector to embed a font. Example: @font-face { font-family: "Parisian BT"; src: url("parisian.ttf"); } But i don't know how well it will work in current browsers. So you cant really use downloaded, or home made fonts at the moment, there is however something called "Embedded OpenType Fonts", which can be used in MSIE. See also: http://www.microsoft.com/typography/web/embedding/default.aspx And the request made to w3c: http://www.w3.org/Submission/2008/01/ Embedded fonts likely won't be supported before CSS3 is standardized. Note. PHP allows to render text with the desired font as images, i would however highly recommend to stay away from such techniques. Quote Link to comment Share on other sites More sharing options...
mattal999 Posted April 22, 2009 Share Posted April 22, 2009 There is a new way to do this with a Javascript tool called SIFR. Read up about it: http://www.mikeindustries.com/blog/sifr/. Quote Link to comment Share on other sites More sharing options...
SuperBlue Posted April 23, 2009 Share Posted April 23, 2009 In that case, i would consider images better. JavaScript just slows down the rendering of the page. Quote Link to comment Share on other sites More sharing options...
Yesideez Posted April 23, 2009 Share Posted April 23, 2009 If coded properly you can write a small script to make your titles using TTF files by using the GD library. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.