:자산 파이프 라인 @ 글꼴 얼굴 (레일 3.2.3) 방법 레일 @ 글꼴 얼굴을 사용하여 글꼴을 emebed하는
내 글꼴에 있습니다
@ 글꼴 얼굴을 포함/공급 업체/자산/스타일/글꼴/맞춤 글꼴 목록 - 여기
내 스타일 시트 내부에 .eot :
나는이 바로이 적합한 지 궁금 지금
@font-face { font-family: 'ArimoRegular'; src: url('<%= asset_path('fonts/arimo-regular-webfont.eot') %>'); src: url('<%= asset_path('fonts/arimo-regular-webfont.eot') %>'+'?#iefix') format('embedded-opentype'), url('<%= asset_path('fonts/arimo-regular-webfont.woff') %>') format('woff'), url('<%= asset_path('fonts/arimo-regular-webfont.ttf') %>') format('truetype'), url('<%= asset_path('fonts/arimo-regular-webfont.svg') %>#ArimoRegular') format('svg'); font-weight: normal; font-style: normal; }
을 사용하고
/vendor/assets/stylesheets/fonts.css,
어떤 제안을 환영합니다, 감사합니다
나는 나의 fonts.css.rb을 수정 여전히 작동하지 않습니다. BTW 귀하의 회신에 감사드립니다. –
방금 내 대답을 수정했습니다 ... 잠시 시간을내어보세요. 희망이 도움이됩니다! –
'assets/fonts'는'app'와'lib'에서만 작동하지만'vendor'에서는 작동하지 않습니다. – sandstrom