Skip to content

Instantly share code, notes, and snippets.

@webapprentice
Created November 7, 2013 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webapprentice/7359720 to your computer and use it in GitHub Desktop.
Save webapprentice/7359720 to your computer and use it in GitHub Desktop.
Use Google fonts in a web page
<style>
@import url(http://fonts.googleapis.com/css?family=PT+Sans);
@import url(http://fonts.googleapis.com/css?family=Cinzel);
@import url(http://fonts.googleapis.com/css?family=Roboto+Condensed);
@import url(http://fonts.googleapis.com/css?family=Fondamento);
p {
font-size: 18px;
}
.font1 {
font-family: 'PT Sans', sans-serif;
}
.font2 {
font-family: 'Cinzel', serif;
}
.font3 {
font-family: 'Roboto Condensed', sans-serif;
}
.font4 {
font-family: 'Fondamento', cursive;
}
</style>
<p class='font1'>PT Sans - The quick brown fox jumps over the lazy dog.</p>
<p class='font2'>Cinzel - The quick brown fox jumps over the lazy dog.</p>
<p class='font3'>Roboto Condensed - The quick brown fox jumps over the lazy dog.</p>
<p class='font4'>Fundamento - The quick brown fox jumps over the lazy dog.</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment