Created
November 7, 2013 18:42
-
-
Save webapprentice/7359720 to your computer and use it in GitHub Desktop.
Use Google fonts in a web page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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