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
Post a Comment