Skip to content

Instantly share code, notes, and snippets.

@aNd1coder
Last active December 27, 2015 17:59
Show Gist options
  • Save aNd1coder/7366280 to your computer and use it in GitHub Desktop.
Save aNd1coder/7366280 to your computer and use it in GitHub Desktop.
@font-face for iconfont
@charset "UTF-8";
$font_name:'iconfont';
$font_url: 'http://path/to/font/#{$font_name}';
@font-face {
font-family: $font_name;
src: url('#{$font_url}.eot');
src: url('#{$font_url}.eot?#iefix') format('embedded-opentype'),
url('#{$font_url}.svg##{$font_name}regular') format('svg'),
url('#{$font_url}.woff') format('woff'),
url('#{$font_url}.ttf') format('truetype');
font-weight: normal;
font-style: normal;
-webkit-font-smoothing: antialiased;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment