Last active
August 29, 2015 14:05
-
-
Save kichMan/3fa5dd9f6d2d5f1548ba to your computer and use it in GitHub Desktop.
CSS perfect include font
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
/** | |
* @description Подключение шрифтов с приоритетом *.svg формата | |
*/ | |
@font-face { | |
font-family: 'Font Name'; | |
src: url(font_src.eot); | |
src: url(font_src.eot?#iefix) format('embedded-opentype'), | |
url(font_src.svg#font_id) format('svg'), | |
/** | |
* Здесь можно указывать остальные форматы | |
* @note Firefox отрабатывает woff-шрифты сгенерированные | |
* только Google | |
* @note При разработке для Firefox не забудь про кэш | |
*/ | |
url(font_src.woff) format('woff'), | |
url(font_src.ttf) format('truetype'), | |
url(font_src.otf); | |
font-weight: normal; | |
font-style: normal; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment