Hi everyone in my rails project, I am trying to use custom fonts, in addition there are many answers related to this question, I followed this answer which does not help edit development.rb file
# Add the fonts path config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
while it shows No route matches [GET] "/assets/chalkduster-webfont.woff"
and I set url as
@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; }
more than trying font_path('') inside the source, and also font-url() it never works ..: (
ruby-on-rails- fonts ruby-on-rails-4 font-face
user1999510 11 Oct '13 at 8:08 2013-10-11 08:08
source share