-
Notifications
You must be signed in to change notification settings - Fork 265
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font files don't get copied from gem #45
Comments
@olavk I've got the same issue, but using Rails. It's actually the asset pipeline that does have the fonts, but the path is wrong. It should be |
+1 For anyone experiencing this issue, a temporary fix is to run this before the font-awesome css:
|
Same issue with Compass compiling Jekyll assets. Fix suggested by @pdenya doesn't work as the font files are never moved to the /fonts directory in my workspace. |
Same issue with just straight Compass, but not using any bootstrap. Also tried @pdenya solution but did not work. Downloading the zip and copying the font directory into my root folder seemed to work though. |
Same here. Running a compass only project. My processed css is generating the url with the function "font-path": @font-face {
font-family: 'FontAwesome';
src: url(font-path("font-awesome/fontawesome-webfont.eot"));
src: url(font-path("font-awesome/fontawesome-webfont.eot?#iefix")) format("embedded-opentype"), url(font-path("font-awesome/fontawesome-webfont.woff2")) format("woff2"), url(font-path("font-awesome/fontawesome-webfont.woff")) format("woff"), url(font-path("font-awesome/fontawesome-webfont.ttf")) format("truetype"), url(font-path("font-awesome/fontawesome-webfont.svg#fontawesomeregular")) format("svg");
font-weight: normal;
font-style: normal;
} |
still same here |
I've run into the same issue as well, just using compass. The font files are not being copied into the fonts directory. |
Same issue here - font files not copied into font directory. Using Compass without Rails. |
1 year old issue - is there any known fix? |
💥 @andreykul that did the trick for me, thanks! |
I had My guess is that a solution to @olavk original problem would be doing
|
@andreabedini the order of those two matters
The rest has nothing to do with |
@andreykul you are right. I don't know what led me to think otherwise 🙈 |
@andreykul well, no, the original issue (which also affects me) is using font-awesome-sass and compass without rails. Doing
copies no fonts, nothing. In that case
and then follow up with |
Has anyone solved it yet? |
Not yet. Yep, still have to copy the fonts manually. |
Thx @andreykul, making sure I had the order: @import "font-awesome-sprockets";
@import "font-awesome"; fixed it. Versions:
|
Still doesn't work for compass/non-rails users, fonts don't get copied. |
Same as above. Using only compass and fonts are not copying over to theme folder. Also the fonts_dir is acting strangely - its appending it to the scss folder instead of a level up when using "../fonts" for the directory.. |
Ok, this seems to work and I'm submitting the code to the github repo. Change the file assets/stylesheets/_font-awesome-compass.scss to exactly match assets/stylesheets/_font-awesome-sprockets.scss The question is whether it breaks anything else. Hopefully someone who knows more about this than me can answer that...or I guess they will see it when I suggest it on github. |
@TruePath's fix works for me, after having this same problem! |
I am using font-awesome-sass with Compass, without Rails. The .css gets copied into css/font-awesome/font-awesome.css but there are no font-awesome fonts in my fonts directory.
I've done:
gem install compass
gem install bootstrap-sass
gem install font-awesome-sass
config.rb:
require 'bootstrap-sass'
require 'compass/import-once/activate'
require 'font-awesome-sass'
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "js"
fonts_dir = "fonts"
relative_assets = true
styles.scss:
@import "bootstrap-compass";
@import "bootstrap-variables";
@import "bootstrap";
@import "font-awesome-compass";
@import "font-awesome";
Fonts directory only has glyphicons from bootstrap-sass, and it works, so i know the paths are correct. Only font-awesome doesn't get fonts copied
The text was updated successfully, but these errors were encountered: