Linked Questions
38 questions linked to/from Using fonts with Rails asset pipeline
238
votes
4
answers
120k
views
Difference between \A \z and ^ $ in Ruby regular expressions
In the documentation I read:
Use \A and \z to match the start and end of the string, ^ and $ match the start/end of a line.
I am going to apply a regular expression to check username (or e-mail is ...
65
votes
8
answers
65k
views
How to use fonts in Rails 4
I have a Rails 4 application and I am trying to use a custom font.
I have followed many tutorials on this and somehow it's just not working for my application.
I am using application.css.less and have ...
78
votes
6
answers
42k
views
Add a new asset path in Rails 3.1
Does anyone know how to add another folder to the asset pipeline in Rails 3.1?
I'd like to serve app/assets/fonts the same way app/assets/images is served.
Update: 5-7-2013
Just to add some ...
32
votes
7
answers
20k
views
Using @font-face with Rails 3.1 app?
I'm having trouble using the following @font-face declaration to work with my Rails 3.1 app. I put the fonts in the Asset Pipeline in its own folder called "Fonts" alongside images and stylesheets ...
32
votes
5
answers
31k
views
Official way of adding custom fonts to Rails 4?
I'm researching how to add custom fonts to my Rails app, e.g. by adding a fonts folder in the assets folder - and I cannot find an "official" Rails way on how to do this.
Yes, there are plenty of ...
21
votes
11
answers
20k
views
Heroku font assets not working
Placed fonts in app/assets/fonts
Added
Add the fonts path
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
Precompile additional assets
config.assets.precompile += %w( .svg ....
20
votes
5
answers
16k
views
Rails 4: Why are fonts not loading in production?
I can't load fonts in my Rails 4 app in production, it works normally in development.
Assets are precompiled on the server while deploying.
I have my fonts in
app/assets/fonts
My app.css:
@font-...
6
votes
7
answers
9k
views
rails app not finding fontawesome icons on heroku
I installed a bootstrap theme and everything is working well locally. However, when I went to push to heroku, my app couldn't find the fonts. I precompiled the assets and pushed to heroku, but no ...
1
vote
3
answers
9k
views
How do I reference a custom font file in my asset folder?
With Rails 5, how do I reference a custom font file I have uploaded? I have placed the file in
app/assets/fonts/chicagoflf-webfont.woff
Then in my CSS file, I have
@font-face {
font-family: '...
7
votes
3
answers
2k
views
Font asset without digest in Ruby on Rails 4
I've got a problem with my font assets being served without digest in production.
As soon as I do rake assets:precompile I get:
5futurebit-webfont-c133dbefd9e1ca208741ed53c7396062.eot
I was trying ...
2
votes
1
answer
3k
views
Rails - using vendor fonts in vendor css in Rails 4 app - asset pipeline
I'm trying to figure out how to adapt a wrap bootstrap theme for use in Rails 4.
The theme uses simple-line-icons. I've tried to move those files to a font folder in my app/assets folder as well as ...
0
votes
3
answers
3k
views
Rails assets is having issues with my fonts
Both locally and in heroku I am having issues with my fonts.
Rails 4.2.5.1
My fonts are in the app/fonts folder:
/app/assets/fonts/fontawesome-webfont.eot
/app/assets/fonts/fontawesome-webfont.svg
/...
3
votes
2
answers
2k
views
Rails 4 - Custom Fonts
Currently I trying to add custom fonts into my Rails 4 application.
I added all of my fonts into assets/fonts
I added config.assets.paths << Rails.root.join("app", "assets", "fonts") into config/...
1
vote
4
answers
3k
views
Where do I put my fonts in Rails 4?
I'm having trouble getting fonts working in Rails.
I'm using the Summernote text editor in a Rails app. I have a summernote.css file at vendor/assets/stylesheets/summernote.css. This references font ...
6
votes
1
answer
2k
views
Failed to load resource: 404 (Not Found) - Rails custom fonts
I am trying to load some custom fonts via the CSS @font-face. I am using the rails fonts_path method. It succesfully generates the correct path in my development browser:
/assets/fonts/my_font.eot?#...