Skip to content

Commit

Permalink
[common] Use SF Mono as fallback font on iOS 13
Browse files Browse the repository at this point in the history
  • Loading branch information
kirb committed Apr 19, 2020
1 parent ffe3f4b commit f124b81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Common/Controllers/Preferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ public enum KeyboardButtonStyle: Int {

if regularFont == nil || boldFont == nil {
NSLog("font %@ size %f could not be initialised", fontName, fontSize)
fontName = "Courier"
if #available(iOS 13.0, macOS 10.15, *) {
fontName = "SF Mono"
} else {
fontName = "Courier"
}
return
}

Expand Down

0 comments on commit f124b81

Please sign in to comment.