NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Website Development
Reload this Page Web fonts

Website Development Development concepts, scripts, sponsors and affiliate programs.

Advanced Search
1 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 08-16-2009, 09:58 AM THREAD STARTER               #1 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




Web fonts


I noticed today that the latest Opera (well, 10 beta), Firefox, and Safari all support the @font-face CSS3 construct. As Safari supports it, so too will all Webkit browsers soon enough (if they don't already). Naturally, IE is a pain and doesn't*.

So, who else is excited for this? I fiddled around with my website and, after a bit of trial and error, got it working. Users now see my website in the fonts I chose, regardless of whether they have them installed or not. It's wonderful.

* But I don't care about IE any more. Until IE8 it actually offered to download my personal website rather than display it.
Barrucadu is offline   Reply With Quote
Old 08-16-2009, 10:51 AM   #2 (permalink)
NamePros Regular
 
elias75's Avatar
Join Date: Jan 2009
Posts: 699
elias75 is a splendid one to beholdelias75 is a splendid one to beholdelias75 is a splendid one to beholdelias75 is a splendid one to beholdelias75 is a splendid one to beholdelias75 is a splendid one to behold
 



this is really great!
could you share the code and the steps you need to do for this to the newbie web developers?
__________________
Domain Name Auctions
elias75 is offline   Reply With Quote
Old 08-16-2009, 12:19 PM THREAD STARTER               #3 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




To define a web font:
Code:
@font-face{
font-family: Name;
src: url(/path/to/file);
}
Then just use it as normal. For example, in my fonts.css I have a bit like this:
Code:
@font-face {
    font-family: "Body Text";
    src:          url(/fonts/TrebuchetMS.ttf);
}

body
{
    font-family: Trebuchet MS, "Body Text";
    font-size:   13px;
}
Barrucadu is offline   Reply With Quote
Old 08-17-2009, 09:11 AM   #4 (permalink)
NamePros Regular
 
elias75's Avatar
Join Date: Jan 2009
Posts: 699
elias75 is a splendid one to beholdelias75 is a splendid one to beholdelias75 is a splendid one to beholdelias75 is a splendid one to beholdelias75 is a splendid one to beholdelias75 is a splendid one to behold
 



Originally Posted by Barrucadu View Post
To define a web font:
Code:
@font-face{
font-family: Name;
src: url(/path/to/file);
}
Then just use it as normal. For example, in my fonts.css I have a bit like this:
????: NamePros.com http://www.namepros.com/website-development/603653-web-fonts.html
Code:
@font-face {
    font-family: "Body Text";
    src:          url(/fonts/TrebuchetMS.ttf);
}

body
{
    font-family: Trebuchet MS, "Body Text";
    font-size:   13px;
}
thanks for this... I will try it a bit later..... REPs+
__________________
Domain Name Auctions
elias75 is offline   Reply With Quote
Old 08-20-2009, 07:35 AM   #5 (permalink)
NamePros Member
Join Date: Aug 2009
Posts: 39
JMDCreations is an unknown quantity at this point
 




Great news mate,
Thanks.

Been waiting for such a thing to hear in compatibility.
Thanks for the code snippet as well, Will try today.
__________________
Web Design | Follow Me On Twitter
JMDCreations is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 11:08 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger