From 1f6cfeaf5154ed508becb9db37db1a3c81b6443a Mon Sep 17 00:00:00 2001 From: XieJiSS Date: Wed, 26 Jan 2022 01:20:43 +0800 Subject: [PATCH] fix: kai display issue for Windows --- _site/heti.css | 6 +++--- lib/fonts/_kai.scss | 10 ++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/_site/heti.css b/_site/heti.css index 7f17d77..32f8cd8 100644 --- a/_site/heti.css +++ b/_site/heti.css @@ -52,19 +52,19 @@ @font-face { font-family: "Heti Kai"; - src: local("Kaiti SC Regular"), local("Kaiti TC Regular"), local("BiauKai"); + src: local("Kaiti SC Regular"), local("Kaiti TC Regular"), local("STKaiti"), local("Kaiti"), local("BiauKai"); } @font-face { font-family: "Heti Kai"; font-weight: 600; - src: local("Kaiti SC Bold"), local("Kaiti TC Bold"); + src: local("Kaiti SC Bold"), local("Kaiti TC Bold"), local("STKaiti"), local("Kaiti"); } @font-face { font-family: "Heti Kai Black"; font-weight: 800; - src: local("Kaiti SC Black"), local("Kaiti TC Black"); + src: local("Kaiti SC Black"), local("Kaiti TC Black"), local("STKaiti"), local("Kaiti"); } .heti { diff --git a/lib/fonts/_kai.scss b/lib/fonts/_kai.scss index 581e56b..5afda73 100644 --- a/lib/fonts/_kai.scss +++ b/lib/fonts/_kai.scss @@ -7,6 +7,8 @@ src: local("Kaiti SC Regular"), local("Kaiti TC Regular"), + local("STKaiti"), + local("Kaiti"), local("BiauKai"); } @@ -16,7 +18,9 @@ font-weight: 600; src: local("Kaiti SC Bold"), - local("Kaiti TC Bold"); + local("Kaiti TC Bold"), + local("STKaiti"), + local("Kaiti"); } // 黑体 Black @@ -25,5 +29,7 @@ font-weight: 800; src: local("Kaiti SC Black"), - local("Kaiti TC Black"); + local("Kaiti TC Black"), + local("STKaiti"), + local("Kaiti"); }