Manage OFN's font through the asset pipeline

This commit is contained in:
Pau Perez
2020-06-19 14:06:57 +02:00
parent de8b97b2e1
commit 0c93de8298
6 changed files with 6 additions and 6 deletions

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

@@ -1,10 +1,10 @@
@font-face {
font-family: 'OFN';
src:url('/OFN-v2.eot?eslsji');
src:url('/OFN-v2.eot?#iefixeslsji') format('embedded-opentype'),
url('/OFN-v2.woff?eslsji') format('woff'),
url('/OFN-v2.ttf?eslsji') format('truetype'),
url('/OFN-v2.svg?eslsji#OFN') format('svg');
src: font-url('OFN-v2.eot');
src: font-url('OFN-v2.eot') format('embedded-opentype'),
font-url('OFN-v2.woff') format('woff'),
font-url('OFN-v2.ttf') format('truetype'),
font-url('OFN-v2.svg') format('svg');
font-weight: normal;
font-style: normal;
}

View File

@@ -13,7 +13,7 @@
- else
= favicon_link_tag "/favicon-staging.ico"
%link{href: "https://fonts.googleapis.com/css?family=Roboto:400,300italic,400italic,300,700,700italic|Oswald:300,400,700", rel: "stylesheet", type: "text/css"}
%link{href: "/OFN-v2.woff?eslsji", rel: "preload", as: "font", crossorigin: "anonymous"}
%link{href: font_path("OFN-v2.woff"), rel: "preload", as: "font", crossorigin: "anonymous"}
= stylesheet_link_tag "darkswarm/all"
= csrf_meta_tags