bokmann / font-awesome-rails

the font-awesome font bundled as an asset for the rails asset pipeline
http://fortawesome.github.com/Font-Awesome/
MIT License
1.86k stars 244 forks source link

strange behaviour #53

Closed nir0 closed 10 years ago

nir0 commented 10 years ago

-1 should it look like this?

$ bundle list | grep rails
  * coffee-rails (4.0.0)
  * compass-rails (1.0.3 1749c06)
  * factory_girl_rails (4.2.1)
  * font-awesome-rails (3.2.1.3)
  * jcrop-rails (1.0.3 77bce10)
  * jquery-fileupload-rails (0.4.1)
  * jquery-rails (3.0.4)
  * jquery-ui-rails (4.0.4)
  * less-rails (2.2.6)
  * rails (4.0.0)
  * rspec-rails (2.14.0)
  * sass-rails (4.0.0)
  * spork-rails (4.0.0 0dd45e5)
  * sprockets-rails (2.0.0)
rmm5t commented 10 years ago

@nir0 Some things to check for:

I noticed you have a dependency on less-rails. Are you also using one of the bootstrap gems? If so, which one? I recommend the bootstrap-sass instead to avoid dependencies on less (unless you're using less for other things). I'm not sure why yet, but others have seen success with dropping the alternatives and using bootstrap-sass.

Let me know if any of that helps. Others have claimed similar issues with Rails 4.0, but I haven't been able to reproduce them yet. Does this same behavior happen to you if you were to initialize a new skeleton Rails 4 app with just font-awesome-rails?

P.S. The screenshot is helpful, but "I don't know why some icons aren't showing up. Please help." would serve you better than a somewhat passive-aggressive, "should it look like this?" Just saying.

nir0 commented 10 years ago

sorry, no offence. 1) yes, i restarted rails server and even rebooted 2)

[nir0@spear ~]$ fc-list | grep Awesome
[nir0@spear ~]$ fc-list | grep awesome
[nir0@spear ~]$ fc-list | grep af
[nir0@spear ~]$ 

3)

[nir0@spear ~/projects/vsluh4 | master]$ ls -la public/
итого 28
drwxr-xr-x  3 nir0 nir0 4096 2013-09-09 16:55 .
drwxr-xr-x 14 nir0 nir0 4096 2013-09-27 12:40 ..
-rw-r--r--  1 nir0 nir0 1351 2013-09-04 10:51 404.html
-rw-r--r--  1 nir0 nir0 1334 2013-09-04 10:51 422.html
-rw-r--r--  1 nir0 nir0 1266 2013-09-04 10:51 500.html
-rw-r--r--  1 nir0 nir0    0 2013-09-04 10:51 favicon.ico
-rw-r--r--  1 nir0 nir0  204 2013-09-04 10:51 robots.txt
drwxr-xr-x  5 nir0 nir0 4096 2013-09-25 12:57 uploads

i'm using gem 'bootstrap-sass' which plays well with gem 'twitter-bootstrap-turbo' so turbolinks don't (mostly) break bootstrap js functionality

nir0 commented 10 years ago

i've watched at both fontawesome-webfont.woff being loaded on local and on official site - they're different. 1 that's on local, pay attention to missing 'o' letter. this letter displayed well on official font file. going to check if this file corrupted on my pc, or in gem itself

nir0 commented 10 years ago
[nir0@spear ~/.rvm/gems/ruby-2.0.0-p195@vsluh4dev/gems]$ find . | grep woff
./font-awesome-rails-3.2.1.3/app/assets/fonts/fontawesome-webfont.woff
./compass_twitter_bootstrap-2.3.1/vendor/assets/fonts/fontawesome-webfont.woff
./twitter-bootstrap-turbo-2.1.3/vendor/assets/fonts/fontawesome-webfont.woff

seems like this bug has nothing to this gem itself :)

rmm5t commented 10 years ago

@nir0 Thanks for the follow-up on this. Good to know that those other gems have outdated font awesome assets that conflict. Please do submit issues to those gems and ask them to depend on font-awesome-rails instead.