Skip to content

Instantly share code, notes, and snippets.

@subchild
Created March 28, 2012 22:46
Show Gist options
  • Save subchild/2231235 to your computer and use it in GitHub Desktop.
Save subchild/2231235 to your computer and use it in GitHub Desktop.
Stylus function for cross browser font assignments.
font(name, path, prefix)
font-family name
font-weight normal
font-style normal
src: url(path + prefix + '.eot')
src: url(path + prefix + '.eot?#iefix') format(embedded-opentype)
src: url(path + prefix + '.woff') format(woff)
src: url(path + prefix + '.ttf') format(truetype)
src: url(path + prefix + '.svg#' + name) format(svg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment