From 12b73aaac6611e2c0842ad3001335cd027270b80 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Mon, 19 Oct 2020 23:06:44 +0530 Subject: [PATCH] fix(app.scss): Move fonts from public to fonts directory so that it can be included in bundle as well (#2251) --- public/index.html | 4 ++-- src/css/app.scss | 4 ++-- {public => src/fonts}/Cascadia.ttf | Bin {public => src/fonts}/Cascadia.woff2 | Bin {public => src/fonts}/FG_Virgil.otf | Bin {public => src/fonts}/FG_Virgil.ttf | Bin {public => src/fonts}/FG_Virgil.woff2 | Bin 7 files changed, 4 insertions(+), 4 deletions(-) rename {public => src/fonts}/Cascadia.ttf (100%) rename {public => src/fonts}/Cascadia.woff2 (100%) rename {public => src/fonts}/FG_Virgil.otf (100%) rename {public => src/fonts}/FG_Virgil.ttf (100%) rename {public => src/fonts}/FG_Virgil.woff2 (100%) diff --git a/public/index.html b/public/index.html index 94f619bb0..9de771545 100644 --- a/public/index.html +++ b/public/index.html @@ -112,14 +112,14 @@ /* http://www.eaglefonts.com/fg-virgil-ttf-131249.htm */ @font-face { font-family: "Virgil"; - src: url("/FG_Virgil.woff2"); + src: url("../src/fonts/FG_Virgil.woff2"); font-display: swap; } /* https://github.com/microsoft/cascadia-code */ @font-face { font-family: "Cascadia"; - src: url("/Cascadia.woff2"); + src: url("../src/fonts/Cascadia.woff2"); font-display: swap; } diff --git a/src/css/app.scss b/src/css/app.scss index cc5ec5f01..67575ba6f 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -1,14 +1,14 @@ /* http://www.eaglefonts.com/fg-virgil-ttf-131249.htm */ @font-face { font-family: "Virgil"; - src: url("/FG_Virgil.woff2"); + src: url("../fonts/FG_Virgil.woff2"); font-display: swap; } /* https://github.com/microsoft/cascadia-code */ @font-face { font-family: "Cascadia"; - src: url("/Cascadia.woff2"); + src: url("../fonts/Cascadia.woff2"); font-display: swap; } diff --git a/public/Cascadia.ttf b/src/fonts/Cascadia.ttf similarity index 100% rename from public/Cascadia.ttf rename to src/fonts/Cascadia.ttf diff --git a/public/Cascadia.woff2 b/src/fonts/Cascadia.woff2 similarity index 100% rename from public/Cascadia.woff2 rename to src/fonts/Cascadia.woff2 diff --git a/public/FG_Virgil.otf b/src/fonts/FG_Virgil.otf similarity index 100% rename from public/FG_Virgil.otf rename to src/fonts/FG_Virgil.otf diff --git a/public/FG_Virgil.ttf b/src/fonts/FG_Virgil.ttf similarity index 100% rename from public/FG_Virgil.ttf rename to src/fonts/FG_Virgil.ttf diff --git a/public/FG_Virgil.woff2 b/src/fonts/FG_Virgil.woff2 similarity index 100% rename from public/FG_Virgil.woff2 rename to src/fonts/FG_Virgil.woff2