Permalink
Browse files

Use embedded-opentype instead of eot

  • Loading branch information...
1 parent e5d2b67 commit 466a677053430b63e633f9034cedafa35c6c0f01 Eric Meyer committed Apr 18, 2013
@@ -16,16 +16,16 @@
// [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
@@ -35,7 +35,7 @@
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 {
@@ -6,7 +6,7 @@ module Compass::SassExtensions::Functions::FontFiles
:ttf => 'truetype',
:truetype => 'truetype',
:svg => 'svg',
- :eot => 'eot'
+ :eot => 'embedded-opentype'
}
def font_files(*args)
@@ -1,4 +1,4 @@
@font-face {
font-family: "font1";
src: url('/tmp/fonts/font1.eot');
- src: url('/tmp/fonts/font1.eot?#iefix') format('eot'), url('/tmp/fonts/font1.woff') format('woff'); }
+ src: url('/tmp/fonts/font1.eot?#iefix') format('embedded-opentype'), url('/tmp/fonts/font1.woff') format('woff'); }

0 comments on commit 466a677

Please sign in to comment.