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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.