Re: [Rails] embedded font
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home