How to add external fonts on rails application with twitter bootstrap?
1)Add the fonts folder inside the assets
2)add the below code for app/assets/styleheets/application.css
@font-face {
font-family: 'font_name';
src: url('../assets/font_file_name.otf');
}
body{
font-family: 'font_name';
}
font-family: 'font_name';
src: url('../assets/font_file_name.otf');
}
body{
font-family: 'font_name';
}
Thanks Chinna for sharing such a useful information along with its code. I will try to implement in my coding this. We are Ruby on Rails developer in India who provide free trials before the final commitment and also free quote within 24 hours.
ReplyDelete