Skip to content

Instantly share code, notes, and snippets.

@iManu
Created July 26, 2016 15:00
Show Gist options
  • Save iManu/f12018bbafc59fcfd041579c32c753da to your computer and use it in GitHub Desktop.
Save iManu/f12018bbafc59fcfd041579c32c753da to your computer and use it in GitHub Desktop.
font-face
@font-face {
font-family: FontFamilyName;
font-weight: 200;
font-style: normal;
font-variant: normal;
src: url(../fonts/FontFamilyName_light.eot);
src: url(../fonts/FontFamilyName_light.eot?#stopIE678here) format("embedded-opentype"),
url(../fonts/FontFamilyName_light.woff) format("woff"),
url(../fonts/FontFamilyName_light.ttf) format("truetype")
}
@font-face {
font-family: FontFamilyName;
font-weight: 400;
font-style: normal;
font-variant: normal;
src: url(../fonts/FontFamilyName_normal.eot);
src: url(../fonts/FontFamilyName_normal.eot?#stopIE678here) format("embedded-opentype"),
url(../fonts/FontFamilyName_normal.woff) format("woff"),
url(../fonts/FontFamilyName_normal.ttf) format("truetype")
}
@font-face {
font-family: FontFamilyName;
font-weight: 400;
font-style: italic;
font-variant: normal;
src: url(../fonts/FontFamilyName_normal_italic.eot);
src: url(../fonts/FontFamilyName_normal_italic.eot?#stopIE678here) format("embedded-opentype"),
url(../fonts/FontFamilyName_normal_italic.woff) format("woff"),
url(../fonts/FontFamilyName_normal_italic.ttf) format("truetype")
}
@font-face {
font-family: FontFamilyName;
font-weight: 700;
font-style: normal;
font-variant: normal;
src: url(../fonts/FontFamilyName_bold.eot);
src: url(../fonts/FontFamilyName_bold.eot?#stopIE678here) format("embedded-opentype"),
url(../fonts/FontFamilyName_bold.woff) format("woff"),
url(../fonts/FontFamilyName_bold.ttf) format("truetype")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment