css - Self hosted @font-face kits from Fonts.com don't load correctly in Rails -


i followed demo.html , copied on fonts correctly , ensured they're being added , compiled in asset pipeline rest of fonts. .eot, .woff, .svg, , .ttf files aren't being found when try use them on page.

there's know issue sprockets server stripping out looks fingerprint before asset resolved. because font names fonts.com uuids, don't work correctly.

more info here: https://github.com/rails/rails/issues/9788

the simplest way fix rename font files replacing every instance of '-' '_' , updating @font-face declarations match new file names.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -