Using @font-face with Rails 3.1 app?

前端 未结 7 1818
青春惊慌失措
青春惊慌失措 2020-12-02 08:23

I\'m having trouble using the following @font-face declaration to work with my Rails 3.1 app. I put the fonts in the Asset Pipeline in its own folder called \"

7条回答
  •  甜味超标
    2020-12-02 09:11

    I'm using 3.1.1 and have my fonts under vendor/assets/store (Spree implementation). The solutions given here did not work for me and I eventually just tried what ended up being my solution - there was no need for

    Here's an example of my src attribute for EOT:

    src: url('1617A5_4.eot');
    

    I'm a little bit confused by this but it seems like once assets are compiled the assets are all copied in to their parent folder (assets/store/) at which point the stylesheet can just pick them up.

提交回复
热议问题