Add LXGWWenKai font

This commit is contained in:
Jackson Harper 2023-02-15 17:18:46 +08:00
parent 0e73a62914
commit 2d528a6cce
3 changed files with 18 additions and 2 deletions

View file

@ -15,6 +15,7 @@ public enum WebFont: String, CaseIterable {
case montserrat = "Montserrat"
case newsreader = "Newsreader"
case atkinsonHyperlegible = "AtkinsonHyperlegible"
case lxgWWenKai = "LXGWWenKai"
static var sorted: [WebFont] {
allCases.sorted { left, right in
@ -44,7 +45,8 @@ public enum WebFont: String, CaseIterable {
.sourceserifpro,
.georgia,
.montserrat,
.newsreader:
.newsreader,
.lxgWWenKai:
return rawValue
case .atkinsonHyperlegible:
return "Atkinson Hyperlegible"

File diff suppressed because one or more lines are too long

View file

@ -312,6 +312,20 @@ div#appleid-signin {
src: url('/static/fonts/AtkinsonHyperlegible/AtkinsonHyperlegible-Italic.ttf');
}
@font-face {
font-family: 'LXGWWenKai';
font-weight: 400;
font-style: normal;
src: url('/static/fonts/LXGWWenKai/LXGWWenKai-Regular.ttf');
}
@font-face {
font-family: 'LXGWWenKai';
font-weight: 700;
font-style: normal;
src: url('/static/fonts/LXGWWenKai/LXGWWenKai-Bold.ttf');
}
@font-face {
font-family: 'SF Mono';
font-weight: 400;