Bring root fonts back (#1422)

* redirect font loading

* bring preloading back

* change paths

* add css type

* move fonts to root

* correct paths

* remove redirects

* correct ext

* remove fonts from main CSS

* remove unneeded fonts

Co-authored-by: kbariotis <konmpar@gmail.com>
This commit is contained in:
Faustino Kialungila 2020-04-13 21:53:07 +02:00 committed by GitHub
parent cca15b0640
commit 51ccf61cc6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 22 additions and 7 deletions

View file

@ -54,8 +54,8 @@ const elements = [
},
];
registerFont("./static/fonts/FG_Virgil.ttf", { family: "Virgil" });
registerFont("./static/fonts/Cascadia.ttf", { family: "Cascadia" });
registerFont("./public/FG_Virgil.ttf", { family: "Virgil" });
registerFont("./public/Cascadia.ttf", { family: "Cascadia" });
const canvas = exportToCanvas(
elements as any,