[Compass Core] Use the font url location in the font face mixin too. Closes #108.

This commit is contained in:
Chris Eppstein 2010-04-12 03:03:43 -07:00
parent 28731c499a
commit 9807b76092

View File

@ -12,14 +12,14 @@
@if $style { @if $style {
font-style: $style; } font-style: $style; }
@if $eot { @if $eot {
src: stylesheet-url($eot); } src: font-url($eot); }
@if $postscript { @if $postscript {
src: local("#{$name}"), local("#{$postscript}"), #{$font-files}; } src: local("#{$name}"), local("#{$postscript}"), #{$font-files}; }
@else { @else {
src: local("#{$name}"), #{$font-files}; } } } src: local("#{$name}"), #{$font-files}; } } }
// EXAMPLE // EXAMPLE
// +font-face("this name", font-files("this.woff", "woff", "this.otf", "opentype"), "fonts/this.eot", "thisname") // +font-face("this name", font-files("this.woff", "woff", "this.otf", "opentype"), "this.eot", "thisname")
// //
// will generate: // will generate:
// //