Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can implement your <code>OTF</code> font using @font-face like:</p> <pre><code>@font-face { font-family: GraublauWeb; src: url("path/GraublauWeb.otf") format("opentype"); } @font-face { font-family: GraublauWeb; font-weight: bold; src: url("path/GraublauWebBold.otf") format("opentype"); } </code></pre> <p>However if you want to support a <strong>wide variety of modern browsers</strong> i would recommend you to switch to <code>WOFF</code> and <code>TTF</code> font types. <code>WOFF</code> type is implemented by every major desktop browser, while the <code>TTF</code> type is a fallback for older Safari, Android and iOS browsers. If your font is a free font, you could convert your font using for example a <a href="http://onlinefontconverter.com/" rel="noreferrer">onlinefontconverter</a>. </p> <pre><code>@font-face { font-family: GraublauWeb; src: url("path/GraublauWebBold.woff") format("woff"), url("path/GraublauWebBold.ttf") format("truetype"); } </code></pre> <p>If you want to <strong>support nearly every browser that is still out there</strong> (not necessary anymore IMHO), you should add some more font-types like:</p> <pre><code>@font-face { font-family: GraublauWeb; src: url("webfont.eot"); /* IE9 Compat Modes */ src: url("webfont.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */ url("webfont.woff") format("woff"), /* Modern Browsers */ url("webfont.ttf") format("truetype"), /* Safari, Android, iOS */ url("webfont.svg#svgFontName") format("svg"); /* Legacy iOS */ } </code></pre> <p>You can read more about why all these types are implemented and their hacks <a href="http://blog.fontspring.com/2011/04/best-practices-for-serving-webfonts-to-ie9/" rel="noreferrer">here</a>. To get a detailed view of which file-types are supported by which browsers, see:</p> <p><a href="http://caniuse.com/#feat=fontface" rel="noreferrer">@font-face Browser Support</a></p> <p><a href="http://caniuse.com/#feat=eot" rel="noreferrer">EOT Browser Support</a></p> <p><a href="http://caniuse.com/#feat=woff" rel="noreferrer">WOFF Browser Support</a></p> <p><a href="http://caniuse.com/#feat=ttf" rel="noreferrer">TTF Browser Support</a></p> <p><a href="http://caniuse.com/#feat=svg-fonts" rel="noreferrer">SVG-Fonts Browser Support</a></p> <p>hope this helps</p>
    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. 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