I used font-squirrel to embed a font onto a site (with Apply Hinting selected), and it's not rendering properly in Chrome v15.0 for PC. The font shows, but poorly. I'm sure that font-squirrel gave me the right code, so I assume there is a conflict in my CSS. Thanks in advance for your help.
@Rockomole This is odd because I'm still seeing the issue. I'm using Rockwell Std-Light on my site as well however, I'm not getting this issue. I'm wondering if it's the way you're embedding it. What I get on my site is the same shown here.
try removing the font-weight property in the css selectors rules. You can leave it for the @font-face but will not need it unless you have more @font-faces with the same name. It is not needed in the css tags selectors since you are calling the only font family with that name and it is already a ligher font...so defining font-weight is not needed.
Not saying this will cure the issue but worth a shot.
I recently read that John Hoefler reported a bug in Chrome that has to do with rendering fonts. Not sure what exactly it consists of - still waiting to hear back.
None of the above work, sorry. I am using Drupal CMS and all my sites have fonts [both @font-face and standard body text] that are bleeding out around the edges in Chrome only, any suggestions?
@cherie From what I've read, you cannot use @font-face inside Media Queries (some bug issue).
Edit: The bug causes a few browsers not to display the font.
It could be the optimization of the font itself so why don't you take a screenshot and upload it to http://tinypic.com and paste the URL here so I can take a better look.
Not sure to be honest :P I came across it in another forum some time ago and decided to give it a shot. My fonts then started rendering fine in Chrome. It's possible that it's not bulletproof, but from my tests (on Browserlab and on various friends computers) this seems to work well.
Without the media query it won't render aliased on Chrome for PC. Here are screenshots I just made. Right shows it with media query included, left without.
These were taken from Browserlab, but I've seen the same directly from a PC. I'm baffled as to why this should work, but it seems to be doing the trick.
I'd post a link to the forum where I found this, but I can't find it anymore :/
@Rockmole That's weird. Sometimes messing with the settings can have an effect on the outcome of converting the files. If you didn't, I bet it's just due to not being optimized properly.
From what I've read, it's a recurring problem with Chrome. It struggles to render a lot of fonts properly, if not all (even Google fonts, ironically). I'd put my money on Font-Squirrel's optimization being right and that Google needs to do some work on Chrome...
Why is it that @font-face shouldn't be in media queries?
It depends. When it comes to webfonts there is a list of things that can cause issues. Google's webfonts are not optimized for screen use. They are poorly hinted.
There's a bug when putting @font-face in media queries. I can't recall if it only effects the iPhone or webkit based browsers.
The problem with Chrome for Win is the font rendering/smoothing engine. It does not work well with WOFF or TTF files. For instance, on this website: http://goo.gl/Y5hSu you'll see they have a standard FontSquirrel-esque @font-face rule. However, for some reason, the WOFF file is not being served. Either it's just not there or they haven't configured a MIME type for it and their server is rejecting it. Either way, the WOFF file isn't available for their web font and in Chrome for Win the fonts look great, antialiased and smooth. That's because Chrome is using the SVG font since it can't find the WOFF file. The SVGs probably use a different rendering engine that the fonts.
That's why, adding an extra @font-face rule AFTER your first one with just the SVG source will override the original one if the browser supports SVG fonts at all.
You might try experimenting with your original @font-face rule and see if placing the SVG source last in the list works as well. So you could try this:
Screenshot
Link to site
Give this a read: http://blog.typekit.com/2011/01/26/css-properties-that-affect-type-rendering/
You could try seeing if using -webkit-font-smoothing: antialiased; helps at all.
text-shadow: 0 1px 0 rgba(0,0,0,0.01);
Not saying this will cure the issue but worth a shot.
Add this as a new CSS rule after the @font-face rule
Edit: It's unrelated.
Paul Irish's worked for me:
And I found this link, so watch out for sneak Arial attacks:
http://sixrevisions.com/css/font-face-web-fonts-issues/
None of the above work, sorry. I am using Drupal CMS and all my sites have fonts [both @font-face and standard body text] that are bleeding out around the edges in Chrome only, any suggestions?
@cherie Link?
Just tried: -webkit-text-stroke: 1px transparent but no luck. The link is, http://majellagt.com.
Thanks
@cherie What text exactly are you having issues with? It's hard to debug since you're code is inline styled. Have you tried the following:
-webkit-font-smoothing: antialiased;Ok, so i have now tried:
So far all areas that i have applied it h1, h2 etc and body still do not render the fonts correctly. Even the standard font family:
I am using a mixture of:
While its not perfect, it is a lot better
@cherie From what I've read, you cannot use @font-face inside Media Queries (some bug issue).
Edit: The bug causes a few browsers not to display the font.
It could be the optimization of the font itself so why don't you take a screenshot and upload it to http://tinypic.com and paste the URL here so I can take a better look.
Have you tried this? I'm not sure exactly why, but this has worked for me various times:
@rockmole Why would you set @font-face twice with the same font format?
Not sure to be honest :P I came across it in another forum some time ago and decided to give it a shot. My fonts then started rendering fine in Chrome. It's possible that it's not bulletproof, but from my tests (on Browserlab and on various friends computers) this seems to work well.
Remove the media query and it should still work.
Without the media query it won't render aliased on Chrome for PC. Here are screenshots I just made. Right shows it with media query included, left without.
Screenshot
These were taken from Browserlab, but I've seen the same directly from a PC. I'm baffled as to why this should work, but it seems to be doing the trick.
I'd post a link to the forum where I found this, but I can't find it anymore :/
*antialiased
@rockmole use
-webkit-font-smoothing: antialiased;and if that doesn't work, move the SVG version above the woff.
By the way, did you convert that font using Font Squirrel?
I'm afraid -webkit-font-smoothing has no effect in Chrome PC, and moving SVG above WOFF makes the font fail to load (FF & Safari mac)
and yeah, I used font-squirrel's code generator
@Rockmole That's weird. Sometimes messing with the settings can have an effect on the outcome of converting the files. If you didn't, I bet it's just due to not being optimized properly.
From what I've read, it's a recurring problem with Chrome. It struggles to render a lot of fonts properly, if not all (even Google fonts, ironically). I'd put my money on Font-Squirrel's optimization being right and that Google needs to do some work on Chrome...
Why is it that @font-face shouldn't be in media queries?
It depends. When it comes to webfonts there is a list of things that can cause issues. Google's webfonts are not optimized for screen use. They are poorly hinted.
There's a bug when putting @font-face in media queries. I can't recall if it only effects the iPhone or webkit based browsers.
The problem with Chrome for Win is the font rendering/smoothing engine. It does not work well with WOFF or TTF files. For instance, on this website: http://goo.gl/Y5hSu you'll see they have a standard FontSquirrel-esque @font-face rule. However, for some reason, the WOFF file is not being served. Either it's just not there or they haven't configured a MIME type for it and their server is rejecting it. Either way, the WOFF file isn't available for their web font and in Chrome for Win the fonts look great, antialiased and smooth. That's because Chrome is using the SVG font since it can't find the WOFF file. The SVGs probably use a different rendering engine that the fonts.
That's why, adding an extra @font-face rule AFTER your first one with just the SVG source will override the original one if the browser supports SVG fonts at all.
You might try experimenting with your original @font-face rule and see if placing the SVG source last in the list works as well. So you could try this: