ciao tutto nel mio progetto di rotaie sto provando ad usare caratteri personalizzati inoltre ci sono molte risposte relative a questa domanda ho seguito questa risposta che non aiuta il file modificato development.rb
@ font-face su rails 4.0 con sass url non trovato per font personalizzati
# Add the fonts path
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
# Precompile additional assets
config.assets.precompile += %w(.svg .eot .woff .ttf)
ancora mostrando No route matches [GET] "/assets/chalkduster-webfont.woff"
e ho impostato mi url
come
@font-face {
font-family: 'chalkdusterregular';
src: url('chalkduster-webfont.eot');
src:url('chalkduster-webfont.svg#chalkdusterregular') format('svg'),
url('chalkduster-webfont.eot?#iefix') format('embedded-opentype'),
url('chalkduster-webfont.woff') format('woff'),
url('chalkduster-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
più sopra cercato font_path('')
all'interno della fonte e anche non funziona mai .. :(
Sembra che si può anche usare 'font-url ('nome_font')' invece di 'asset- url ('font_name', font) ' –
Per me,' font-url' non funziona (link a /fonts/file.ext), mentre 'asset-url' funziona (link a /assets/file.ext) – FeifanZ
per me ha funzionato con * .svg * .eot * .woff * .ttf su rotaie 4.1.1 – joseramonc