This mix-in is a shortcut for the cumbersome @font-face
declaration.
It assumes that all font files are stored in the same directory and
share the same file name (e.g. font-name.eot
, font-name.woff
, etc.).
@font-face {
.font-face(
'Font Name', // Font name as used in CSS
'file-name', // Font file name (without extension)
normal, // Font weight (default: normal)
normal // Font style (default: normal)
);
}
h1 {
font-family: 'Font Name', sans-serif;
}
Plugged together lovingly by Jason Lengstorf.