Skip to content

Instantly share code, notes, and snippets.

@diasbruno
Created May 18, 2012 14:51
Show Gist options
  • Save diasbruno/2725666 to your computer and use it in GitHub Desktop.
Save diasbruno/2725666 to your computer and use it in GitHub Desktop.
make new @font-face less.
/**
* Make a new font face.
*/
.makeFontStyle( @name, @uri, @weight, @style ) {
font-family: @name;
src: url( '@{uri}.eot' );
src: url( '@{uri}.ttf' ) format( 'truetype' );
font-weight: @weight;
font-style: @style;
}
// create
@font-face {
.makeFontStyle( 'bla bla bla',
'path/to/font/bla bla bla',
normal/[100-900]/bold/bolder/lighter,
normal/italic/oblique );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment