F
F
FreezkoSS2017-09-19 11:21:11
Ruby on Rails
FreezkoSS, 2017-09-19 11:21:11

There is a font file with .ttf extension, how to connect it to rails?

I used the Mistral font in the usual site template, as I understand it, this font is missing on ruby ​​on rails, how can I include it in styles, if I added the fonts folder to the asset and entered config.assets.paths << Rails.root into application.rb. join("app", "assets", "fonts") ?
Mistral.ttf file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vayladion Gognazdiak, 2017-09-19
@FreezkoSS

config.assets.precompile << /\.(?:svg|eot|woff|ttf)\z/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question