I created a fonts.css.scss file in fonts folder and given below format
@font-face {
font-family: 'amandaregular';
src: url(font-path('amanda-webfont.eot'));
}
it's generating with compiled fonts, but unable to load font-family
@font-face {
font-family: 'amandaregular';
src: url("http://localhost:3000/assets/amanda-webfont.eot");
}
First make sure you add the fonts folder to the Asset pipeline load path in config/application.rb, and then restart your server:
Then place fonts.css.scss in app/assets/stylesheets and make sure it is included in your application.scss manifest. It should look like:
Notice the above uses the Fontspring @font-face syntax.
Finally, make sure that the file amanda-webfont.eot is saved in app/assets/fonts