frameworks/compass/stylesheets/compass/css3/_font-face.scss in compass-0.13.alpha.4 vs frameworks/compass/stylesheets/compass/css3/_font-face.scss in compass-0.13.alpha.5

- old
+ new

@@ -1,6 +1,6 @@ -@import "shared"; +@import "compass/support"; // Cross-browser support for @font-face. Supports IE, Gecko, Webkit, Opera. // // * $name is required, arbitrary, and what you will use in font stacks. // * $font-files is required using font-files('relative/location', 'format'). @@ -14,29 +14,29 @@ // // If you need to generate other formats check out the Font Squirrel // [font generator](http://www.fontsquirrel.com/fontface/generator) // -// In order to refer to a specific style of the font in your stylesheets as +// In order to refer to a specific style of the font in your stylesheets as // e.g. "font-style: italic;", you may add a couple of @font-face includes // containing the respective font files for each style and specying // respective the $style parameter. // Order of the includes matters, and it is: normal, bold, italic, bold+italic. @mixin font-face( - $name, - $font-files, + $name, + $font-files, $eot: false, $weight: false, $style: false ) { $iefont: unquote("#{$eot}?#iefix"); @font-face { font-family: quote($name); @if $eot { src: font-url($eot); - $font-files: font-url($iefont) unquote("format('eot')"), $font-files; + $font-files: font-url($iefont) unquote("format('embedded-opentype')"), $font-files; } src: $font-files; @if $weight { font-weight: $weight; }