embedded font

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

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