fontawesome字体指南针生成错误

时间:2015-06-27 10:53:35

标签: css gem compass-sass font-awesome compass

我的认可是:     $ fa-font-path:" / fonts / fontawesome /" !默认值;

@import "font-awesome-sprockets";
@import "font-awesome";

https://github.com/FortAwesome/font-awesome-sass#b-compass-without-rails

@font-face {
    font-family: 'FontAwesome';
    src: url(font-path("/fonts/fontawesome/fontawesome-webfont.eot"));
    src: url(font-path("/fonts/fontawesome/fontawesome-webfont.eot?#iefix")) format("embedded-opentype"),url(font-path("/fonts/fontawesome/fontawesome-webfont.woff2")) format("woff2"),url(font-path("/fonts/fontawesome/fontawesome-webfont.woff")) format("woff"),url(font-path("/fonts/fontawesome/fontawesome-webfont.ttf")) format("truetype"),url(font-path("/fonts/fontawesome/fontawesome-webfont.svg#fontawesomeregular")) format("svg");
    font-weight: normal;
    font-style: normal
}

您可以在网址上找到font-path

我使用gem 'font-awesome-sass', '~> 4.3.0'