-
-
Save janwirth/498ec95e89386dcfddae to your computer and use it in GitHub Desktop.
Font face mixin for WOFF & WOFF2
This file contains hidden or 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
// font-face mixin | |
font-url(file) | |
return 'fonts/' + file | |
webfont(family, file, weight = normal, style = normal) | |
@font-face | |
font-family family | |
file += '/' + file | |
url(font-url(file + '.woff2')) format('woff2'), | |
url(font-url(file + '.woff')) format('woff') | |
font-weight weight | |
font-style style |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment