On Aug 14, 2012, at 5:32 AM, phoe san wrote:

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
ttf is not ok @ ruby on rails ?

How I do ?

Regards,

Phoesan

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedAug 14, '12 at 9:33a
activeAug 14, '12 at 3:34p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Phoe san: 1 post Rob Biedenharn: 1 post

People

Translate

site design / logo © 2021 Grokbase