Skip to content

Commit

Permalink
Use embedded-opentype instead of eot
Browse files Browse the repository at this point in the history
  • Loading branch information
mirisuzanne committed Apr 18, 2013
1 parent e5d2b67 commit 466a677
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions frameworks/compass/stylesheets/compass/css3/_font-face.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
// [font generator](http:https://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
Expand All @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion lib/compass/sass_extensions/functions/font_files.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Compass::SassExtensions::Functions::FontFiles
:ttf => 'truetype',
:truetype => 'truetype',
:svg => 'svg',
:eot => 'eot'
:eot => 'embedded-opentype'
}

def font_files(*args)
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/stylesheets/compass/css/fonts.css
Original file line number Diff line number Diff line change
@@ -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.