Mini John
Mini John

Reputation: 7941

Changing Fonts in Rails 4 don't Work

On localhost eveything show's up fine. But on deployment Heroku doesn't get the Font right. Here's how it should look like ->

enter image description here

and here is how it looks on Heroku -> Project on Heroku

Github Repo -> Here

The font is declared in app/assets/stylesheets/flat-ui.css

Upvotes: 1

Views: 189

Answers (1)

Mini John
Mini John

Reputation: 7941

I don't know why Rails doesn't recognize this automatically, but got it working by including in my application.html.erb file

<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900,400italic,700italic' rel='stylesheet' type='text/css'>

Upvotes: 1

Related Questions