css - Compass font-face mixin not properly compiling -
css - Compass font-face mixin not properly compiling -
i'm using compass , it's built-in @include font-face mixin. however, fonts not loading. think may due series of numbers beingness added end of file path when compiles.
compiled css:
@font-face { font-family: "helvetical-neue"; src: url('/css/fonts/2c7f11_0_0.eot?1415225657'); src: url('/css/fonts/2c7f11_0_0.eot?&1415225657#iefix') format('embedded-opentype'), url('/css/fonts/2c7f11_0_0.ttf?1415225657') format('truetype'), url('/css/fonts/2c7f11_0_0.woff?1415225657') format('woff'); } @font-face { font-family: "helvetical-neue-condensed"; src: url('/css/fonts/2c7f17_0_0.eot?1415225657'); src: url('/css/fonts/2c7f17_0_0.eot?&1415225657#iefix') format('embedded-opentype'), url('/css/fonts/2c7f17_0_0.ttf?1415225657') format('truetype'), url('/css/fonts/2c7f17_0_0.woff?1415225657') format('woff'); }
font declarations in compass:
@include font-face("helvetical-neue", font-files("2c7f11_0_0.ttf", "2c7f11_0_0.woff"), "2c7f11_0_0.eot"); @include font-face("helvetical-neue-condensed", font-files("2c7f17_0_0.ttf", "2c7f17_0_0.woff"), "2c7f17_0_0.eot"); $helvetica-neue: "helvetical-neue" !default; $helvetica-condensed: "helvetical-neue-condensed" !default;
my fonts in default css/fonts directory , set config.rb following:
fonts_dir = "css/fonts"
researching question, came across relative_assets = true. i've tried both , without , there has been no change.
is there missing or doing incorrectly? other assets (images, videos, etc.) load fine.
thank time. appreciate it!
css fonts sass font-face compass
Comments
Post a Comment