fix: updated monospaced font for stack widget (#1978)

This commit is contained in:
Serhiy Mytrovtsiy
2024-06-08 10:23:26 +02:00
parent d8c127e4d2
commit 5105d7cdb9
2 changed files with 3 additions and 5 deletions

View File

@@ -134,11 +134,9 @@ public class StackWidget: WidgetWrapper {
}
private func drawOneRow(_ x: CGFloat, _ element: Stack_t) -> CGFloat {
var font: NSFont
var font: NSFont = NSFont.systemFont(ofSize: 13, weight: .regular)
if self.monospacedFontState {
font = NSFont.monospacedDigitSystemFont(ofSize: 13, weight: .regular)
} else {
font = NSFont.systemFont(ofSize: 13, weight: .regular)
font = NSFont.monospacedSystemFont(ofSize: 13, weight: .regular)
}
let style = NSMutableParagraphStyle()