How to Decorate Web Pages With Google Font API and Font Squirrel

Nur . Posted in Freebies, How-To 8695 Views

Using Arial or Georgia font in your WordPress theme is a normal thing but now it’s essential that you take advantage of the latest tools and techniques. Until now, designers were forced to choose from only a handful of web fonts when designing their sites or templates. But not anymore, Take the Google Font Directory, you only need to link to a Google-hosted style sheet and set your CSS font-family, accordingly.

How to use the Google Font API to add web fonts to your pages?

Here is the example of the code to produce the required result:

<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8″>
<title>Custom Fonts in 30 Seconds</title>
<link href=”http://fonts.googleapis.com/css?family=Cantarell” rel=”stylesheet”>
<style>
body { font-family: ‘Cantarell’, serif; }
</style>
</head>
<body>
Hello World
</body>
</html>

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 are served by Google servers.

Right Now, Google’s Font Directory only offers around a dozen curated custom fonts. And i hope this number will surely increase with the passage of time, if you need a unique font for your web page that’s unavailable, it only takes an extra moment or so to write the @font-face rules yourself.

Font Squirrel:

It is very easier to utilize the @font-face kits from the wonderful Font Squirrel site. They offer @font-face “kits,” which contain everything you need to use the fonts straight away, and they’ve done it very well: their fonts are free and licensed for use in commercial projects.

Download | Generate

You might interested in : How to Customize fonts in WordPress blog with CSS3


Nur

I am a Wordpress, Website Developer and Designer, creator @ WP Arena, Provide Free WordPress consultation and can help to install WordPress in a secure way to small businesses and bloggers.

Free & Professional WordPress Security Service Free & Professional WordPress Security Service

We Love WordPress. WordPress Arena is a place for WordPress Developers and Designers, providing Tips, tricks, tools and resources to build a website or blog on WordPress. We also present The WordPress Showcase for all kind of WordPress Powered Websites.


Copyright © 2014 WP Arena All Rights Reserved

Divi WordPress Theme