Merge pull request #3231 from omnivore-app/feat/ios-add-fonts

Add Literata and Fraunces font on iOS
This commit is contained in:
Jackson Harper 2023-12-11 11:19:02 +08:00 committed by GitHub
commit fdf839973f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 55 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

@ -44,6 +44,8 @@ const FONT_FAMILIES = [
'LXGWWenKai',
'AtkinsonHyperlegible',
'IBMPlexSans',
'Fraunces',
'Literata',
]
type SettingsProps = {

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;