I think you might have a problem with the pipeline
You want to change bootstrap.css to bootstrap.css.scss and then replace where it uses
@font-face { font-family: 'Glyphicons Halflings'; src: url('../fonts/glyphicons-halflings-regular.eot'); src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); }
with font-path (see section 2.3.2 - CSS and Sass)
@font-face { font-family: 'Glyphicons Halflings'; src: font-path('glyphicons-halflings-regular.eot'); src: font-path('glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), font-path('glyphicons-halflings-regular.woff') format('woff'), font-path('glyphicons-halflings-regular.ttf') format('truetype'), font-path('glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); }
Also in config/environments/production.rb
In your config/application.rb
# Add the fonts path config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
Check out another SO post for a similar issue
Hope this helps
user2262149 Nov 28 '13 at 0:50 2013-11-28 00:50
source share