Reply
How to make font file used for text? makes no sense read, u'll know what i mean.
Old 04-13-2007, 05:20 PM How to make font file used for text? makes no sense read, u'll know what i mean.
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
New College Enrollment.
Posts: 5,805
Name: Dan
Location: Swindon
Hi,

title of this made no sense, i know but hopefully you will get what i need to know, from this...

i have some fonts, like .ttf files and i want to use one for some text on a webpage, what css do i need to use to tell it to use that?

like in css or something.

Thanks for you help, im googling it but cant find what i want thanks everyone i know someone will know.

Dan
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
When You Register, These Ads Go Away!
     
Old 04-13-2007, 06:18 PM Re: How to make font file used for text? makes no sense read, u'll know what i mean.
tripy's Avatar
Fetchez la vache!

Posts: 1,822
Name: Thierry
Location: In the void
You cannot do that on pure CSS .
It's in w3c recommendations, but no browser integrate support for this.
It's a specific css2 attribute, called font-face that control that.
http://www.w3.org/TR/REC-CSS2/fonts.html#q47

But, as you can see from this chart, support for it is pretty bad...
http://www.westciv.com/style_master/..._concepts.html
(complete charts here: http://www.westciv.com/style_master/...ort/index.html)

But, on the other hand, I've found explanation on how to enable it on IE.
http://www.ssi-developer.net/design/embed-font.shtml

And another interesting article, about alternatives:
http://www.alistapart.com/articles/dynatext/


Note that http://www.alistapart.com is worth browsing if you want to learn about CSS, and design / web dev tips.
__________________
Listen to the ducky: "This is awesome!!!"


Last edited by tripy : 04-13-2007 at 06:26 PM.
tripy is offline
Reply With Quote
View Public Profile
 
Old 04-13-2007, 06:31 PM Re: How to make font file used for text? makes no sense read, u'll know what i mean.
Republikin's Avatar
Super Moderator

Posts: 3,191
The best option I know of is sIFR http://www.mikeindustries.com/sifr/
Republikin is offline
Reply With Quote
View Public Profile
 
Old 04-14-2007, 11:50 AM Re: How to make font file used for text? makes no sense read, u'll know what i mean.
LadynRed's Avatar
Super Moderator

Posts: 5,973
Location: Tennessee
I have to second REpublikan's advice, SIFR is the way to go if you want to use non-standard fonts.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 04-14-2007, 04:32 PM Re: How to make font file used for text? makes no sense read, u'll know what i mean.
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
New College Enrollment.
Posts: 5,805
Name: Dan
Location: Swindon
u know i really honestly though it would be something like

.somin
{
font: url('fonts/font.ttf');
}

Wouldnt that be easier? WHY!?!?
__________________
Personal UK Webhosting
Get 25% of ANY shared package for life ~ Promo: webmaster-talk
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 04-14-2007, 09:13 PM Re: How to make font file used for text? makes no sense read, u'll know what i mean.
Republikin's Avatar
Super Moderator

Posts: 3,191
Quote:
Originally Posted by dansgalaxy View Post
u know i really honestly though it would be something like

.somin
{
font: url('fonts/font.ttf');
}

Wouldnt that be easier? WHY!?!?
Read through those links that Trippy put up. You will see that there is something akin to that in the W3C recommendations however, there is very poor browser support for it.
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to make font file used for text? makes no sense read, u'll know what i mean.
 

Thread Tools

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14800 seconds with 13 queries