|
|
@@ -19,7 +19,7 @@ class ViewController: NSViewController, NSTextViewDelegate, NSUserNotificationCe |
|
|
|
|
|
|
|
loadDocument() |
|
|
|
|
|
|
|
writerText.font = NSFont(name: "Lora", size: Preferences.getFontSize()) |
|
|
|
writerText.font = NSFont(name: Preferences.getFont().typeface, size: Preferences.getFontSize()) |
|
|
|
writerText.isHorizontallyResizable = false |
|
|
|
writerText.textContainerInset = NSSize(width: 16, height: 16) |
|
|
|
writerText.isAutomaticQuoteSubstitutionEnabled = false |
|
|
@@ -139,7 +139,7 @@ class ViewController: NSViewController, NSTextViewDelegate, NSUserNotificationCe |
|
|
|
} else { |
|
|
|
size -= 1 |
|
|
|
} |
|
|
|
self.writerText.font = NSFont(name: "Lora", size: size) |
|
|
|
self.writerText.font = NSFont(name: Preferences.getFont().typeface, size: size) |
|
|
|
UserDefaults.standard.set(String(Int(size)), forKey: "editor_text_size") |
|
|
|
configureWindow() |
|
|
|
} |
|
|
|