Skip to content

Instantly share code, notes, and snippets.

@JNajera
JNajera / gist:5996143
Created July 14, 2013 21:21
Generate multiple @font-face with SCSS from the Asset Pipeline
/////////////////////////
// Generale font-face
/////////////////////////
@each $font-face in font1, font2, font3, ... {
@font-face {
font-family: '#{$font-face}';
src: url(font-path('#{$font-face}.eot') + "?#iefix") format('embedded-opentype'),
url(font-path('#{$font-face}.woff')) format('woff'),
url(font-path('#{$font-face}.ttf')) format('truetype'),