Add install fonts option
This commit is contained in:
parent
8308b99ee7
commit
34c4521cd4
|
@ -81,6 +81,19 @@ struct DisplaySettingsView: View {
|
|||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
|
||||
Section {
|
||||
if !UIFont.familyNames.contains("OpenDyslexic") {
|
||||
Button("settings.display.fonts.install") {
|
||||
print(UIFont.familyNames)
|
||||
let hyperLegibleURL = Bundle.main.url(forResource: "Atkinson-Hyperlegible-Regular-102", withExtension: "ttf")
|
||||
let openDyslexicURL = Bundle.main.url(forResource: "OpenDyslexic-Regular", withExtension: "otf")
|
||||
let fontsURLs = [hyperLegibleURL, openDyslexicURL]
|
||||
CTFontManagerRegisterFontURLs(fontsURLs as CFArray, .persistent, true)
|
||||
{ (errors, done) -> Bool in
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
theme.followSystemColorScheme = true
|
||||
theme.selectedSet = colorScheme == .dark ? .iceCubeDark : .iceCubeLight
|
||||
|
|
|
@ -147,6 +147,8 @@
|
|||
"settings.haptic.tab-selection" = "Tab Selection";
|
||||
"settings.haptic.buttons" = "Button Press";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "Exploreu";
|
||||
"tab.federated" = "Federat";
|
||||
|
|
|
@ -145,6 +145,8 @@
|
|||
"settings.haptic.tab-selection" = "Tab Selection";
|
||||
"settings.haptic.buttons" = "Button Press";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
"enum.expand-media.show" = "Alle zeigen";
|
||||
"enum.expand-media.hide" = "Alle ausblenden";
|
||||
"enum.expand-media.hide-sensitive" = "Sensible ausblenden";
|
||||
|
|
|
@ -149,6 +149,8 @@
|
|||
"settings.haptic.tab-selection" = "Tab Selection";
|
||||
"settings.haptic.buttons" = "Button Press";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "Explore";
|
||||
"tab.federated" = "Federated";
|
||||
|
|
|
@ -149,6 +149,8 @@
|
|||
"settings.haptic.tab-selection" = "Tab Selection";
|
||||
"settings.haptic.buttons" = "Button Press";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "Explore";
|
||||
"tab.federated" = "Federated";
|
||||
|
|
|
@ -145,6 +145,8 @@
|
|||
"settings.haptic.tab-selection" = "Tab Selection";
|
||||
"settings.haptic.buttons" = "Button Press";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
"enum.expand-media.show" = "Siempre";
|
||||
"enum.expand-media.hide" = "Nunca";
|
||||
"enum.expand-media.hide-sensitive" = "Ocultar contenido sensible";
|
||||
|
|
|
@ -148,6 +148,8 @@
|
|||
"settings.haptic.tab-selection" = "Sélection d'onglet";
|
||||
"settings.haptic.buttons" = "Appui bouton";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "Explorer";
|
||||
"tab.federated" = "Fédéré";
|
||||
|
|
|
@ -148,6 +148,8 @@
|
|||
"settings.haptic.tab-selection" = "Selezione Tab";
|
||||
"settings.haptic.buttons" = "Pressione dei bottoni";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "Esplora";
|
||||
"tab.federated" = "Federazione";
|
||||
|
|
|
@ -148,6 +148,8 @@
|
|||
"settings.haptic.tab-selection" = "タブセレクト";
|
||||
"settings.haptic.buttons" = "ボタン操作時";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "エクスプローラー";
|
||||
"tab.federated" = "連合";
|
||||
|
|
|
@ -148,6 +148,8 @@
|
|||
"settings.haptic.tab-selection" = "하단 탭 바를 누를 때";
|
||||
"settings.haptic.buttons" = "버튼을 누를 때";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "둘러보기";
|
||||
"tab.federated" = "연합";
|
||||
|
|
|
@ -148,6 +148,8 @@
|
|||
"settings.haptic.tab-selection" = "Tab Selection";
|
||||
"settings.haptic.buttons" = "Button Press";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "Utforsk";
|
||||
"tab.federated" = "Federert";
|
||||
|
|
|
@ -145,6 +145,8 @@
|
|||
"settings.haptic.tab-selection" = "Tabselectie";
|
||||
"settings.haptic.buttons" = "Knoppen";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "Ontdekken";
|
||||
"tab.federated" = "Gefedereerd";
|
||||
|
|
|
@ -148,6 +148,8 @@
|
|||
"settings.haptic.tab-selection" = "Wybór zakładki";
|
||||
"settings.haptic.buttons" = "Naciśnięcie przycisku";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "Odkrywaj";
|
||||
"tab.federated" = "Globalny";
|
||||
|
|
|
@ -148,6 +148,8 @@
|
|||
"settings.haptic.tab-selection" = "Tab Selection";
|
||||
"settings.haptic.buttons" = "Button Press";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "Explorar";
|
||||
"tab.federated" = "Linha global";
|
||||
|
|
|
@ -148,6 +148,8 @@
|
|||
"settings.haptic.tab-selection" = "Tab Selection";
|
||||
"settings.haptic.buttons" = "Button Press";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
// MARK: Tabs
|
||||
"tab.explore" = "Keşfet";
|
||||
"tab.federated" = "Birleştirilmiş";
|
||||
|
|
|
@ -143,6 +143,8 @@
|
|||
"settings.haptic.tab-selection" = "导航栏";
|
||||
"settings.haptic.buttons" = "按钮";
|
||||
|
||||
"settings.display.fonts.install" = "Install OpenDyslexic and Hyper Legible fonts";
|
||||
|
||||
"settings.display.font" = "时间线字体";
|
||||
"settings.display.font.system" = "系统";
|
||||
"settings.display.font.custom" = "自定义";
|
||||
|
|
Loading…
Reference in New Issue