Shiva Kumar 's Blog

Start small,Think Big

Loading fonts from assets in rails 3.1

I got lot confused when loading new fonts to my project in rails 3.1 and stackoverflow confused me more ..Actually its very simple .Lets say you have list of fonts First create a fonts directory under assets folder then move all the fonts there.You want to load a font .Insert  @font-face  before the css property of the span.And you need not to change url to font-url in the declarations.


Yup,that’s it your good to go.Now you can see all your new fonts loading properly

, , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *