@ font-face rendering problem in Chrome for PC

I used font-squirrel to insert the font into the site (with the selected Hinting application), and it is not correctly processed in Chrome v15.0 for PC. The font is displayed, but poorly. I'm sure font-squirrel gave me the correct code, so I assume there is a conflict in my CSS. Thanks in advance for your help.

enter image description here

Link

@font-face { font-family: 'RockwellStd-Light'; src: url('rockwellstdlight-webfont.eot'); src: url('rockwellstdlight-webfont.eot?#iefix') format('embedded-opentype'), url('rockwellstdlight-webfont.woff') format('woff'), url('rockwellstdlight-webfont.ttf') format('truetype'), url('rockwellstdlight-webfont.svg#RockwellStdLight') format('svg'); font-weight: lighter; font-style: normal; } h1 { font-family:'RockwellStd-Light', Helvetica, Ariel; font-size:34px; color:#407d3b; font-weight:lighter; margin-left:20px; } h2 { font-family:'RockwellStd-Light', Helvetica, Ariel; font-size:32px; color:#ece1af; font-weight:lighter; line-height:42px; } h3 { font-family:'RockwellStd-Light', Helvetica, Ariel; font-size:20px; color:#FFF; font-weight:lighter; } p { font-family:'RockwellStd-Light', Helvetica, Ariel; font-size:14px; line-height:17px; color:#333; text-align:justify; } .criteria_table { font-family:'RockwellStd-Light', Helvetica, Ariel; font-size:14px; color:#FFF; } 
+7
source share
4 answers

You can specify text-shadow:

 text-shadow: 0 0 1px rgba(0, 0, 0, .01); 

Using custom fonts to make them look better in google chrome. This forces Chrome to use an alternate rendering path. Please note that this will increase the processor load on the end-user computer.

+3
source

stack overflow

For fonts marked with font-face @, the fix is ​​to install the svg file right below .eot, but above .woff and .ttf

From this:

 @font-face { font-family: 'MyWebFont'; src: url('webfont.eot'); src: url('webfont.eot?#iefix') format('embedded-opentype'), url('webfont.woff') format('woff'), url('webfont.ttf') format('truetype'), url('webfont.svg#svgFontName') format('svg'); } 

For this:

 @font-face { font-family: 'MyWebFont'; src: url('webfont.eot'); src: url('webfont.eot?#iefix') format('embedded-opentype'), url('webfont.svg#svgFontName') format('svg'), url('webfont.woff') format('woff'), url('webfont.ttf') format('truetype'); } 

Examples of this fix can be seen here:

FontSpring Examples
Adtrak Examples

+8
source

I'm sorry guys, but in Chrome 16 this no longer works.

Character topic here: @ anti-font anti-aliasing on windows and mac

And I wrote about it on the Google Chrome forum here, waiting for a reaction now: http://www.google.com/support/forum/p/Chrome/thread?tid=43f549bc2a960a12&hl=en

+2
source

As already noted by hisnameisjimmy , the solution is to use SVG fonts, which are always rendered with anti-aliasing, but this also has some disadvantages:

  • SVG fonts do not contain hint information, so the displayed letters are not as crispy as they can be in a system with font smoothing enabled.
  • The weight and style of SVG fonts cannot be changed, so using font-weight:bold; or font-style:italic; has no effect.

However, at least the first problem can be solved using SVG fonts only if font smoothing is actually disabled. There is a good post in User Agent Man on how to define a font-smooting, which I used to create a small script (~ 600 bytes) that automatically updates the CSS font if font smoothing is disabled.

You can find my Font Smoothie script in the GitHub GIST , and all you have to do is add the following line anywhere in your page:

 <script src="fontsmoothie.min.js" type="text/javascript"></script> 

However, to get pretty verbs you also need a hint . Fortunately, there is a way to add an automatically generated hint to the ttf font using ttfautohint , and then you can use Font Squirrel to create the -fonts webpage. The whole process is a bit complicated, so I wrote an article on how to create pixel-based web fonts | Bytes , which explains how to add hints to the font and how to use my Font Smoothie script. Hope this helps :)

PS: I know that a link to my own blog will not be appreciated here, but I think that my post describes a good solution to the problem, so I posted it anyway. Please leave a comment if you want me to delete the link and I will do it.

+2
source

All Articles