Created
August 14, 2013 08:26
-
-
Save kmlprtsng/6228999 to your computer and use it in GitHub Desktop.
font face - Using same font name with different weights
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
@font-face { | |
font-family: 'Liberation Sans'; | |
src: url('fonts/LiberationSans-Regular.ttf') format('truetype'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
@font-face { | |
font-family: 'Liberation Sans'; | |
src: url('fonts/LiberationSans-Italic.ttf') format('truetype'); | |
font-weight: normal; | |
font-style: italic; | |
} | |
@font-face { | |
font-family: 'Liberation Sans'; | |
src: url('fonts/LiberationSans-Bold.ttf') format('truetype'); | |
font-weight: bold; | |
font-style: normal; | |
} | |
@font-face { | |
font-family: 'Liberation Sans'; | |
src: url('fonts/LiberationSans-BoldItalic.ttf') format('truetype'); | |
font-weight: bold; | |
font-style: italic; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment