Skip to Main Content
MooTools 1.3 Cookbook
book

MooTools 1.3 Cookbook

by Jay L Johnston
July 2011
Intermediate to advanced content levelIntermediate to advanced
276 pages
5h 11m
English
Packt Publishing
Content preview from MooTools 1.3 Cookbook

Loading Google fonts!

The world is a-buzz with the excitement of every designer on the planet. Finally, we can use something other than Arial, Helvetica, and Verdana!

Get ready

Produce some markup that we can use to apply our Google fonting to.

<h1 style="font-family:'Miltonian'">Hello, my fine world</h1>
<h2 style="font-family:'UnifrakturMaguntia'">World, you are fine indeed</h2>

Note

The styling using font-family does not have to be inline. Using it within the stylesheet is perfectly acceptable. All information in Google's documentation for the font library stands; our extended class will only abstract and simplify the loading of the fonts.

How to do it...

The embed code for Google Fonts is pretty straightforward. Still, in an effort to make it simple ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Jump Start Web Performance

Jump Start Web Performance

Craig Buckler

Publisher Resources

ISBN: 9781849515689Other