Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>Update August 2014</h2> <blockquote> <p>Google finally fixes this issue in Chrome 37 natively!!!. But for historical reasons I won't delete this answer.</p> </blockquote> <h3>Problem</h3> <p>The issue is created because <strong>chrome actually cannot render TrueType fonts with correct anti-aliasing</strong>. However, chrome still renders SVG files well. If you move the call for your svg file up in your syntax above the woff, chrome will download the svg and use it instead of the woff file. Some tricks like you propose work well, but only on certain font sizes.</p> <p>But this bug is very well known to the Chrome developer team, and has been in fixing since July 2012. See the official bug report thread here: <a href="https://code.google.com/p/chromium/issues/detail?id=137692" rel="nofollow">https://code.google.com/p/chromium/issues/detail?id=137692</a></p> <h3>Update Oct 2013 (Thanks to @Catch22)</h3> <p>Apparently some websites may experience <strong>intermittent spacing issues when rendering the svg</strong>. So there is a <a href="http://www.fontspring.com/blog/smoother-rendering-in-chrome-update" rel="nofollow">better way</a> to skin it. If you call the svg with a media query specific to Chrome, the spacing issues disappear:</p> <pre><code>@media screen and (-webkit-min-device-pixel-ratio:0) { @font-face { font-family: 'MyWebFont'; src: url('webfont.svg#svgFontName') format('svg'); } } </code></pre> <h3>First approach solution:</h3> <p>The Fontspring bulletproof syntax modified to serve the svg first:</p> <pre><code>@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'); } </code></pre> <h3>Further reading:</h3> <ul> <li><a href="http://blog.typekit.com/2011/01/26/css-properties-that-affect-type-rendering/" rel="nofollow">CSS properties that affect type rendering</a></li> <li><a href="http://www.fontspring.com/blog/smoother-web-font-rendering-chrome" rel="nofollow">Smoother Web Font Rendering in Chrome for Windows</a></li> <li><a href="http://sixrevisions.com/css/font-face-web-fonts-issues/" rel="nofollow">How to Bulletproof @font-face Web Fonts</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload