Skip to content

Instantly share code, notes, and snippets.

@magemore
Created April 25, 2012 04:59
Show Gist options
  • Save magemore/2486564 to your computer and use it in GitHub Desktop.
Save magemore/2486564 to your computer and use it in GitHub Desktop.
Adding Google fonts
<!-- Some special fonts -->
/* Single font load*/
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Serif">
/* Multiple font load*/
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Nobile|Droid+Serif|Old+Standard+TT|Droid+Sans"><!-- Some special fonts -->
@magemore
Copy link
Author

Use this to add the Google font API. This lets you use some new cool-looking fonts on your website that all browsers and computers will display properly – so you don’t have to mess with installing fonts separately for your website or hoping your visitors have the appropriate fonts (which no self-respecting designer would do anyway).

@magemore
Copy link
Author

In your CSS:
body {
font-family: 'Droid Serif', serif; font-size: 48px;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment