Web fonts / Google
May. 24th, 2010 12:06 pmGoogle have recently launched an API to allow you to specify various fonts for use in your pages. There have been various such services available previously, but the Google one is free. Could be useful if you think your visitors are fed up of the fairly restrictive list of fonts natively and consistently supported across the various browsers.
The API is about as simple as it could be: you just include a link element in your document head thus:
and then in your CSS you can use it the same way as any other font:
The list of font families thus available is here. The one that leaps out is that it includes Igino Marini's recreation of the Fell types -- good stuff.
What I don't know yet is: is there a significant delay making this call, such that it slows the page displaying? Some testing required.
(X-posted to
cssybarites)
The API is about as simple as it could be: you just include a link element in your document head thus:
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Cantarell">
and then in your CSS you can use it the same way as any other font:
h1 {font-family: 'Cantarell';}
The list of font families thus available is here. The one that leaps out is that it includes Igino Marini's recreation of the Fell types -- good stuff.
What I don't know yet is: is there a significant delay making this call, such that it slows the page displaying? Some testing required.
(X-posted to
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-community.gif)