title: Using fonts with Rails 4.2.4
body: <p>I'm trying to use a particular font in a Rails 4.2.4 app and nothing is working--it stubbornly refuses to show up.  I've spent a few hours on it, and I don't know what I'm doing wrong. </p>
  
  <p>The font is located at <code>app/assets/fonts/comic_andy.tff</code>.</p>
  
  <p>SCSS (located at <code>app/assets/stylesheets/sass/application.css.scss</code>): </p>
  
  <pre><code>@font-face { 
  font-family: "comic_andy"; 
  src: font-url('comic_andy.ttf');
  src: font-url('comic_andy.ttf'), format('truetype'); 
  }
  </code></pre>
  
  <p>In the browser, the SCSS compiles to this CSS: </p>
  
  <pre><code>@font-face {
  font-family: "comic_andy";
  src: url(/fonts/comic_andy.ttf);
  src: url(/fonts/comic_andy.ttf), format("truetype");
  }
  </code></pre>
  
  <p>Isn't it supposed to be compiling to assets/comic_andy.ttf?  I'm newer to Rails and although I get what the asset pipeline <em>is</em>, it's still proving tricky to wrap my head around enough to use very efficiently. </p>
  
  <p>I've read through <a href="https://stackoverflow.com/questions/24731752/rails-4-custom-fonts">Rails 4 - Custom Fonts</a>, <a href="https://stackoverflow.com/questions/18294150/how-to-use-fonts-in-rails-4">How to use fonts in Rails 4</a> and several other Stack Overflow questions related to fonts/Rails/the asset pipeline, and tried many of the suggestions, including (but not limited to!) adding <code>config.assets.paths &lt;&lt; Rails.root.join('app', 'assets', 'fonts')</code> to <code>application.rb</code> (nope), trying <code>asset-url</code> (nope), <code>font-url</code> (nope), and plain <code>url</code> (nope), and restarting the server several times after <code>rake assets:clobber</code> (nope). :(</p>