sass - Compass SCSS font-url configuration issue -
am writing down template use of compass sass here font-mixin makes problem without setting web font.and config file like
http_path = "/" css_dir = "resources/stylesheets" sass_dir = "resources/stylesheets" images_dir = "resources/images" javascripts_dir = "resources/js" and usage of font mixin generated output
@font-face { font-family: "cabinregular"; src: url('resources/stylesheets/fonts/cabin-regular.eot?#iefix') format('embedded- opentype'), url('resources/stylesheets/fonts/cabin-regular.ttf') format('truetype'), url('resources/stylesheets/fonts/cabin-regular.woff') format('woff'); } the path correct font won't apply while running html.but if specify http path like
http_path="/somename/" it applies. why won't works without specifying http_path..?
bringing src: url("../fonts/cabin-regular?#iefix"); before main src make working fine
@font-face { font-family: 'cabinregular'; src: url("../fonts/cabin-regular?#iefix"); src: url("../fonts/cabin-regular?#iefix") format("embedded-opentype"), url("../fonts/cabin-regular") format("woff"), url("../fonts/cabin-regular") format("truetype"), url("../fonts/cabin-regular.svg#cabin-regular") format("svg"); font-weight: normal; font-style: normal; }
Comments
Post a Comment