Integrate free Web-Fonts by using Google Web Fonts

The distribution of usage of web fonts is gradually increasing on many websites. A long time, many designers and web developers have waived them, because of lack of browser-support and problems with the copyrights of many fonts, and used instead for example headlines as an image within their website.

Important points while using Web Fonts are therefore that it must be free fonts (for example under Open Font License) and chosen if possible, a format that does many or even all browsers understand.

We now want to integrate with the help of Google Web Fonts a free font in a website.
First we open the Google Web Fonts website and select any font. Have we decided on a font, we click the bottom right on ‘Use’.

Here we simply go to the steps that are pretending Google Web fonts:
1. Select the styles you want to use
2. Select the character set that should be used
3. Add the given code in the header of the website. Alternatively you can also download the fonts above the left and place it on your own webspace.

<link href=',400italic,700,700italic' rel='stylesheet' type='text/css'>

4. At last just include the font in necessary places in the CSS.

.webFont {
  font-family: 'Marvel',Arial,Helvetica,sans-serif;


Attention: With too many fonts can slow down its website. Choose therefore better only the fonts that are actually in need of website. So check on the Page Load speedometer 😉
Unfortunately the Internet-Explorer only supports the TTF format from version 9. Older versions of Internet Explorer only understand their own format Embedded OpenType, short EOT. However there is a new standard that should solving this problem. The Web Open Font Format, short WOFF. So far it is only supported by the latest browser versions. Therefore you must include all three formats of Web-Fonts, to make sure that every visitor can see the right fonts on your website

  IE Firefox Chrome Safari Opera
TTF 9 3.5 4 3.1 10
WOFF 9 3.6 5 5.1 11.1

An online tool that allows you to convert TTF to Web-Fonts (EOT, OTF, SVG, WOFF) is available at
After the we now converted all three Web-Font formats, it’s time to integrate these into the system. This one solves the following CSS:

@font-face {
  font-family: 'Marvel';
  src: url('fonts/Marvel.eot#iefix') format('embedded-opentype'),
       url('fonts/Marvel.woff') format('woff'),
       url('fonts/Marvel.ttf') format('truetype');
  font-style: normal;
  font-weight: normal;
  1. No comments yet.

  1. September 24th, 2011