Add new fonts to Android
Some new fonts: - Atkinson Hyperlegible - Newsreader - LXGW WenKai
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
android/Omnivore/app/src/main/assets/LXGWWenKai-Bold.ttf
Normal file
BIN
android/Omnivore/app/src/main/assets/LXGWWenKai-Bold.ttf
Normal file
Binary file not shown.
BIN
android/Omnivore/app/src/main/assets/LXGWWenKai-Regular.ttf
Normal file
BIN
android/Omnivore/app/src/main/assets/LXGWWenKai-Regular.ttf
Normal file
Binary file not shown.
BIN
android/Omnivore/app/src/main/assets/Newsreader-Bold.ttf
Normal file
BIN
android/Omnivore/app/src/main/assets/Newsreader-Bold.ttf
Normal file
Binary file not shown.
BIN
android/Omnivore/app/src/main/assets/Newsreader-Italic.ttf
Normal file
BIN
android/Omnivore/app/src/main/assets/Newsreader-Italic.ttf
Normal file
Binary file not shown.
BIN
android/Omnivore/app/src/main/assets/Newsreader-Regular.ttf
Normal file
BIN
android/Omnivore/app/src/main/assets/Newsreader-Regular.ttf
Normal file
Binary file not shown.
@ -15,6 +15,9 @@ enum class WebFont(val displayText: String, val rawValue: String) {
|
||||
ROBOTO("Roboto", "Roboto"),
|
||||
CRIMSON_TEXT("Crimson Text", "Crimson Text"),
|
||||
SOURCE_SERIF_PRO("Source Serif Pro", "Source Serif Pro"),
|
||||
NEWSREADER("Newsreader", "Newsreader"),
|
||||
LXGWWENKAI("LXGW WenKai", "LXGWWenKai"),
|
||||
ATKINSON_HYPERLEGIBLE("Atkinson Hyperlegible", "AtkinsonHyperlegible"),
|
||||
}
|
||||
|
||||
enum class ArticleContentStatus(val rawValue: String) {
|
||||
|
||||
@ -263,7 +263,7 @@ class WebReaderViewModel @Inject constructor(
|
||||
|
||||
val storedFontFamily = datastoreRepo.getString(DatastoreKeys.preferredWebFontFamily) ?: WebFont.SYSTEM.rawValue
|
||||
val storedThemePreference = datastoreRepo.getString(DatastoreKeys.preferredTheme) ?: "System"
|
||||
val storedWebFont = WebFont.values().first { it.rawValue == storedFontFamily }
|
||||
val storedWebFont = WebFont.values().firstOrNull { it.rawValue == storedFontFamily } ?: WebFont.values().first()
|
||||
|
||||
val prefersHighContrastFont = datastoreRepo.getString(DatastoreKeys.prefersWebHighContrastText) == "true"
|
||||
val prefersJustifyText = datastoreRepo.getString(DatastoreKeys.prefersJustifyText) == "true"
|
||||
|
||||
Reference in New Issue
Block a user