From 3e4afef37e98c2f9efeab19dbfe62c0763107403 Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Fri, 13 Oct 2023 14:15:03 +1100 Subject: [PATCH] Update font usage --- src/app/global.scss | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/app/global.scss b/src/app/global.scss index 3d866fb..2bb7ff5 100644 --- a/src/app/global.scss +++ b/src/app/global.scss @@ -1,5 +1,20 @@ -@import url('/NotoSerifSC-Black.otf'); -@import url('/NotoSerifSC-SemiBold.otf'); +@font-face { + font-family: 'Noto Serif SC'; + font-style: normal; + font-weight: 900; + font-display: swap; + src: url("/NotoSerifSC-Black.otf") format('woff2'); + unicode-range: U+1f1e9-1f1f5, U+1f1f7-1f1ff, U+1f21a, U+1f232, U+1f234-1f237, U+1f250-1f251, U+1f300, U+1f302-1f308, U+1f30a-1f311, U+1f315, U+1f319-1f320, U+1f324, U+1f327, U+1f32a, U+1f32c-1f32d, U+1f330-1f357, U+1f359-1f37e; +} + +@font-face { + font-family: 'Noto Serif SC'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url("/NotoSerifSC-SemiBold.otf") format('woff2'); + unicode-range: U+1f1e9-1f1f5, U+1f1f7-1f1ff, U+1f21a, U+1f232, U+1f234-1f237, U+1f250-1f251, U+1f300, U+1f302-1f308, U+1f30a-1f311, U+1f315, U+1f319-1f320, U+1f324, U+1f327, U+1f32a, U+1f32c-1f32d, U+1f330-1f357, U+1f359-1f37e; +} body { margin: 0px;