Skip to content

Instantly share code, notes, and snippets.

@is8r
Created June 16, 2014 05:47
Show Gist options
  • Save is8r/1666d0ca173041b02834 to your computer and use it in GitHub Desktop.
Save is8r/1666d0ca173041b02834 to your computer and use it in GitHub Desktop.
.xxx
+fontface('xxx', 'xxx/xxx-webfont')
font-family: 'xxx'
=fontface($name, $path, $weight: normal, $style: normal)
font-family: $name
src: url('#{$path}.eot')
src: url('#{$path}.eot?#iefix') format("embedded-opentype"), url('#{$path}.woff') format("woff"), url('#{$path}.ttf') format("truetype")
font-weight: $weight
font-style: $style
@is8r
Copy link
Author

is8r commented Jun 16, 2014

パスの末尾に「-webfont」がついてるのはこれで変換してるから
http://www.fontsquirrel.com/tools/webfont-generator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment