Add Literata and Fraunces font on iOS

This commit is contained in:
Jackson Harper
2023-12-11 10:52:29 +08:00
parent fbc9f04e3b
commit dd229d890e
4 changed files with 53 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -19,6 +19,8 @@ public enum WebFont: String, CaseIterable {
case sourceSansPro = "SourceSansPro"
case lexend = "Lexend"
case IBMPlexSans
case literata = "Literata"
case fraunces = "Fraunces"
static var sorted: [WebFont] {
allCases.sorted { left, right in
@ -50,7 +52,9 @@ public enum WebFont: String, CaseIterable {
.montserrat,
.newsreader,
.lxgWWenKai,
.lexend:
.lexend,
.literata,
.fraunces:
return rawValue
case .atkinsonHyperlegible:
return "Atkinson Hyperlegible"

File diff suppressed because one or more lines are too long

View File

@ -373,6 +373,52 @@ div#appleid-signin {
src: url('/static/fonts/Lexend/Lexend-Bold.ttf');
}
@font-face {
font-family: 'Fraunces';
font-weight: 400;
font-style: normal;
src: url('/static/fonts/Fraunces/Fraunces-Variable.ttf');
}
@font-face {
font-family: 'Fraunces';
font-weight: 700;
font-style: bold;
src: url('/static/fonts/Fraunces/Fraunces-Variable.ttf');
}
@font-face {
font-family: 'Fraunces';
font-weight: 400;
font-style: italic;
src: url('/static/fonts/Fraunces/Fraunces-Italic.ttf');
}
@font-face {
font-family: 'Literata';
font-weight: 400;
font-style: normal;
src: url('/static/fonts/Literata/Literata-Variable.ttf');
}
@font-face {
font-family: 'Literata';
font-weight: 700;
font-style: bold;
src: url('/static/fonts/Literata/Literata-Variable.ttf');
}
@font-face {
font-family: 'Literata';
font-weight: 400;
font-style: italic;
src: url('/static/fonts/Literata/Literata-Italic.ttf');
}
.dropdown-arrow {
display: inline-block;
width: 0;