11155
(-- --)
August 14, 2012, 9:32am
1
I want to add custom fonts in my rails project.
fonts is in assets/stylesheets folder.
In my Css . I declare font-face :
@font-face
{
font-family: Zawgyi-One;
src: url("/assets/stylesheets/Zawgyi-One.ttf");
}.
ttf is not ok @ ruby on rails ?
How I do ?
Regards,
Phoesan
rab
(Rob Biedenharn)
August 14, 2012, 3:34pm
2
I want to add custom fonts in my rails project.
fonts is in assets/stylesheets folder.
In my Css . I declare font-face :
@font-face
{
font-family: Zawgyi-One;
src: url("/assets/stylesheets/Zawgyi-One.ttf");
}.
src: url('Zawgyi-one.ttf');
that's all you need to find the file.
Alternatively, '/assets/Zawgyi-one.ttf' but not with the stylesheets/ subdir specified. That's just how the asset pipeline searches.
-Rov