2010-05-24 // Google's Webfont Directory and Font API
Right now, you can't use many fonts for common text if you are running a website. The shared font-set available on most operating systems and devices is small and well known: Arial/Helvetica, Times New Roman, and Courier (New). You even should investigate1) good fallback fonts if you are using Georgia, Verdana or Lucida.
But there is light at the end of the tunnel: modern browsers are supporting font loading techniques. The pitfall is that there is no simple way to serve your font-file. Operating systems are using other file formats than browsers and as bonus, even the major browsers are using two different ones:
- Embedded OpenType (EOT) by Microsoft for MSIE 4-8
- Web Open Font Format (WOFF) by Mozilla for FF >=3.6, MSIE >=9, Opera, Webkit etc.
Additionally, you have to be alerted to legal issues because you are not only using but distributing the fonts. This means even if you buy a license to use a font for doing webgraphics, you may not be allowed to offer it as .eot/.woff file.
This is where the Google Font API comes into play. It offers an easy way to use some new fonts on your website by including only one CSS file served by Google. The API takes care of browser issues and is serving only open source fonts.2) Just read the instructions and start using it.
But let us talk about the downsides:
- Your visitors will download data from Google, offering usage statistics to them (e.g. via HTTP referrer). It is another jigsaw puzzle piece for Google to know everything about you, your visitors and your website.
- No matter how smart the API is, your page rendering speed will get slower.
- Your visitors have to download more data (→ the font file).
But even if the mentioned downsides are show-stoppers for you, you can learn how to use the new opportunities by investigating how the API is doing its job, e.g. to build an own solution without privacy issues.
Weblinks
- Google Font Directory
“The Google Font Directory lets you browse all the fonts available via the Google Font API. All fonts in the directory are available for use on your website under an open source license and served by Google servers.” - DamienG - Droid font family courtesy of Google & Ascender
Posting about the Droid font family with specimen and download links. - Free Fonts Of The Month: Relato Sans, Droid Family
Smashing Magazine about the Droid font family (available via Google Font API)
Leave a comment…
- E-Mail address will not be published.
- Formatting:
//italic// __underlined__
**bold**''preformatted''
- Links:
[[http://example.com]]
[[http://example.com|Link Text]] - Quotation:
> This is a quote. Don't forget the space in front of the text: "> "
- Code:
<code>This is unspecific source code</code>
<code [lang]>This is specifc [lang] code</code>
<code php><?php echo 'example'; ?></code>
Available: html, css, javascript, bash, cpp, … - Lists:
Indent your text by two spaces and use a * for
each unordered list item or a - for ordered ones.