Skip to content

Instantly share code, notes, and snippets.

@ricklancee
Created November 6, 2015 19:03
Show Gist options
  • Select an option

  • Save ricklancee/0bf1aa0dd9a36e8ead65 to your computer and use it in GitHub Desktop.

Select an option

Save ricklancee/0bf1aa0dd9a36e8ead65 to your computer and use it in GitHub Desktop.
/** Light */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'),
url('../fonts/Open_Sans/OpenSans-Light.ttf') format('ttf');
unicode-range: U+000-5FF; /* Latin glyphs */
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 300;
src: local('Open Sans Light Italic'),
url('../fonts/Open_Sans/OpenSans-LightItalic.ttf') format('ttf');
unicode-range: U+000-5FF; /* Latin glyphs */
}
/** Normal */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 400;
src: local('Open Sans Italic'),
url('../fonts/Open_Sans/OpenSans-Italic.ttf') format('ttf');
unicode-range: U+000-5FF; /* Latin glyphs */
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'),
url('../fonts/Open_Sans/OpenSans-Regular.ttf') format('ttf');
unicode-range: U+000-5FF; /* Latin glyphs */
}
/** SemiBold */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 600;
src: local('Open Sans Semibold'),
url('../fonts/Open_Sans/OpenSans-SemiBold.ttf') format('ttf');
unicode-range: U+000-5FF; /* Latin glyphs */
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 600;
src: local('Open Sans Semibold Italic'),
url('../fonts/Open_Sans/OpenSans-SemiBoldItalic.ttf') format('ttf');
unicode-range: U+000-5FF; /* Latin glyphs */
}
/** Bold */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans Bold'),
url('../fonts/Open_Sans/OpenSans-Bold.ttf') format('ttf');
unicode-range: U+000-5FF; /* Latin glyphs */
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 700;
src: local('Open Sans Bold Italic'),
url('../fonts/Open_Sans/OpenSans-BoldItalic.ttf') format('ttf');
unicode-range: U+000-5FF; /* Latin glyphs */
}
/** ExtraBold */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: local('Open Sans ExtraBold'),
url('../fonts/Open_Sans/OpenSans-ExtraBold.ttf') format('ttf');
unicode-range: U+000-5FF; /* Latin glyphs */
}
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 700;
src: local('Open Sans ExtraBold Italic'),
url('../fonts/Open_Sans/OpenSans-ExtraBoldItalic.ttf') format('ttf');
unicode-range: U+000-5FF; /* Latin glyphs */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment