Skip to content

Instantly share code, notes, and snippets.

@kichMan
Last active August 29, 2015 14:05
Show Gist options
  • Save kichMan/3fa5dd9f6d2d5f1548ba to your computer and use it in GitHub Desktop.
Save kichMan/3fa5dd9f6d2d5f1548ba to your computer and use it in GitHub Desktop.
CSS perfect include font
/**
* @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