Integrating @font-face files into rails asset pipeline

前端 未结 1 1751
悲哀的现实
悲哀的现实 2020-12-17 01:41

I\'m trying to integrate a designer\'s html and css files into a rails app. He\'s got about four @font-face files that are currently linked to in the application.css file.

相关标签:
1条回答
  • 2020-12-17 01:49

    Start by putting your fonts into app/assets/fonts. After that, you can include your fonts in a sass / scss file via the font_url('font.eot') helper.

    Otherwise, asset_path should still find the fonts there if you're determined to use it.

    0 讨论(0)
提交回复
热议问题