mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add new fonts on iOS
This commit is contained in:
parent
f6ba5d90fe
commit
857e7ce010
19 changed files with 55 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
|
@ -22,7 +22,10 @@ public func registerFonts() -> Bool {
|
|||
registerFont(bundle: .module, fontName: "Montserrat-Regular", fontExtension: "ttf"),
|
||||
registerFont(bundle: .module, fontName: "Newsreader-Regular", fontExtension: "ttf"),
|
||||
registerFont(bundle: .module, fontName: "AtkinsonHyperlegible-Regular", fontExtension: "ttf"),
|
||||
registerFont(bundle: .module, fontName: "SourceSerifPro-Regular", fontExtension: "ttf")
|
||||
registerFont(bundle: .module, fontName: "SourceSerifPro-Regular", fontExtension: "ttf"),
|
||||
registerFont(bundle: .module, fontName: "SourceSansPro-Regular", fontExtension: "ttf"),
|
||||
registerFont(bundle: .module, fontName: "IBMPlexSans-Regular", fontExtension: "ttf"),
|
||||
registerFont(bundle: .module, fontName: "LXGWWenKai-Regular", fontExtension: "ttf")
|
||||
]
|
||||
.allSatisfy { $0 }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ public enum WebFont: String, CaseIterable {
|
|||
case newsreader = "Newsreader"
|
||||
case atkinsonHyperlegible = "AtkinsonHyperlegible"
|
||||
case lxgWWenKai = "LXGWWenKai"
|
||||
case sourceSansPro = "SourceSansPro"
|
||||
case IBMPlexSans
|
||||
|
||||
static var sorted: [WebFont] {
|
||||
allCases.sorted { left, right in
|
||||
|
|
@ -52,6 +54,10 @@ public enum WebFont: String, CaseIterable {
|
|||
return "Atkinson Hyperlegible"
|
||||
case .openDyslexic:
|
||||
return "Open Dyslexic"
|
||||
case .sourceSansPro:
|
||||
return "Source Sans Pro"
|
||||
case .IBMPlexSans:
|
||||
return "IBM Plex Sans"
|
||||
case .system:
|
||||
return "System Default"
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
|
|
@ -333,6 +333,49 @@ div#appleid-signin {
|
|||
src: url('/static/fonts/SFMono/SFMonoRegular.otf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SourceSansPro';
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
src: url('/static/fonts/SourceSansPro/SourceSansPro-Regular.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SourceSansPro';
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
src: url('/static/fonts/SourceSansPro/SourceSansPro-Bold.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'SourceSansPro';
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
src: url('/static/fonts/SourceSansPro/SourceSansPro-Italic.ttf');
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: 'IBMPlexSans';
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
src: url('/static/fonts/IBMPlexSans/IBMPlexSans-Regular.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'IBMPlexSans';
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
src: url('/static/fonts/IBMPlexSans/IBMPlexSans-Bold.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'IBMPlexSans';
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
src: url('/static/fonts/IBMPlexSans/IBMPlexSans-Italic.ttf');
|
||||
}
|
||||
|
||||
.dropdown-arrow {
|
||||
display: inline-block;
|
||||
width: 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue