Despite following the instructions in this thread, I am unable to achieve the same results.
main.css
h1 {
font-family: 'Shadows Into Light', serif;
src: url('/assets/fonts/shadows.ttf') format("Shadows Into Light");
font-size: 40px;
text-align: center;
position: relative;
bottom: 20px;
margin: 0 auto 0 auto;
width:100px;
}
Assets Directories
assets
|
|
---stylesheets
| |
| ---main.css
---images
|
|
---images
|
|
---fonts
|
---shadow.ttf
In an additional attempt, I tried to manually add the fonts directory into my asset pipeline:
config/application.rb
class Application < Rails::Application
config.assets.paths << Rails.root.join("app", "assets", "fonts")
Any insights on how to successfully include a ttf custom font into my Rails application?