Friday, November 26, 2010

Google Font API

Just discovered the Google Font API - can't believe I've been wasting all that time (and bandwidth) creating images for non-standard browser fonts:

<html>
<head>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine|Inconsolata|Droid+Sans">
<style>
body {
font-family: 'Tangerine', serif;
font-size: 48px;
text-shadow: 4px 4px 4px #aaa;
}
</style>
</head>
<body>
<h1>Making the Web Beautiful!</h1>
</body>
</html>

See: http://code.google.com/apis/webfonts/docs/getting_started.html#Quick_Start

No comments: