I tried following this thread here but I am not able to duplicate their 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
Additionally, I attempted to manually include the fonts directory into my asset pipeline:
config/application.rb
class Application < Rails::Application
config.assets.paths << Rails.root.join("app", "assets", "fonts")
How do I include ttf custom font into my Rails app?