Current location: Hot Scripts Forums » General Web Coding » CSS » @font-face help (Trying to get a graceful degrade)


@font-face help (Trying to get a graceful degrade)

Reply
  #1 (permalink)  
Old 11-20-09, 08:04 PM
therocket954's Avatar
therocket954 therocket954 is offline
Community Liaison
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 334
Thanks: 2
Thanked 8 Times in 8 Posts
@font-face help (Trying to get a graceful degrade)

I'm using @font-face to embed a font, but the custom font has a different scale than the system fonts it degrades to. For example:

Custom font at 25 px is about the same "size" as 12 px Arial.

The problem arises when an older browser doesn't support the custom font, it degrades to Arial, but still keeps the 25pt making the text much larger.

I'm wondering if there's a CSS trick for this, or if anyone can suggest a typography program that will allow me to change the aspect ratio / height size of a font file.

Thanks!

HTML Code:
@font-face {  
  font-family: "My Font";  
  src: url(../font/myfont.eot); /* IE */  
  src: local("My Font"), url(../font/myfont.ttf) format("truetype"); /* non-IE */  
	}

	
body {
	font-family: "My Font", Arial, sans-serif;
	font-size: 25px;
	}
__________________
--Eric Allison
Twitter: http://www.twitter.com/Eric_Allison
Reply With Quote
  #2 (permalink)  
Old 11-23-09, 07:35 AM
therocket954's Avatar
therocket954 therocket954 is offline
Community Liaison
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 334
Thanks: 2
Thanked 8 Times in 8 Posts
Fixed the issue... ended up just going with a different custom font that had a similar scale to Arial.

However, for future reference, I would still like to know if there's any font editing programs that could do such a thing.
__________________
--Eric Allison
Twitter: http://www.twitter.com/Eric_Allison
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I have no idea what I'm doing (cannot find symbol) tophat Everything Java 1 09-11-07 04:23 AM
What are the problems you face on lancing sites? deeps_ar The Lounge 2 03-31-06 11:49 PM


All times are GMT -5. The time now is 02:24 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.