iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-23-2005, 02:14 AM
WebProWorld New Member
 
Join Date: Sep 2005
Posts: 2
alanag RepRank 0
Default loading fonts into css

I have been told that there is a way to load an entire font into css so that I can use specialized fonts in my sites and the fonts will read correctly regardless of browsers and user computers. Unfortunatly I have only been able to determine that it can be done, but no one seems to know how. Any suggestions??
Reply With Quote
  #2 (permalink)  
Old 09-23-2005, 05:47 AM
MuNKyonline's Avatar
WebProWorld Veteran
 
Join Date: Jun 2004
Location: Suffolk, England
Posts: 777
MuNKyonline RepRank 2
Default

I had a go at doing that on one of my experimental sites called Musix.

You can do it using an embedded font. You'll need a program like WEFT to convert the font from a ttf to a eot.

This is how I linked it in with css:

@font-face
{
font-family: FFF Galaxy;
src: url(http://www.munkyonline.co.uk/Musix/fonts/FFFGALA1.eot);
}

I think this only works in Internet Explorer. You have to make a different font type for other browsers. You'll have to search on google to find out how to do that =)
Reply With Quote
  #3 (permalink)  
Old 09-23-2005, 10:49 AM
WebProWorld New Member
 
Join Date: Sep 2005
Posts: 2
alanag RepRank 0
Default thanks!

Thanks! I will give it a try! :)
Reply With Quote
  #4 (permalink)  
Old 09-23-2005, 12:58 PM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 1
Default

If you want a true cross-browser solution, the only safe bet is to embed your fonts into images. While CSS allows for it, as MuNKy demonstrated, it's not really supported all that well.

The downside, obviously, is that the iamges aren't plain text. But you can always create a text-only alternative, use ALT tags, etc. and so on.)
Reply With Quote
  #5 (permalink)  
Old 09-23-2005, 12:58 PM
WebProWorld Pro
 
Join Date: Jul 2005
Location: UK
Posts: 166
Steve W RepRank 0
Default

A much easier solution in my opinion, assuming you have a basic knowledge of PHP and JS?

Works in any browser with JS and images turned on, and can be seen in practice on my CCCP blog (just don't view with Opera or scale the text - both faults of my CSS which I haven't fixed yet - not the technique).

It's called dynamic text replacement.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:41 PM.



Search Engine Optimization by vBSEO 3.3.0