summaryrefslogtreecommitdiff
path: root/src/macos/Sources/PardesView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'src/macos/Sources/PardesView.swift')
-rw-r--r--src/macos/Sources/PardesView.swift5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/macos/Sources/PardesView.swift b/src/macos/Sources/PardesView.swift
index f9afa7b1..5c5bc8ba 100644
--- a/src/macos/Sources/PardesView.swift
+++ b/src/macos/Sources/PardesView.swift
@@ -761,8 +761,9 @@ final class PardesView: NSView {
}
/// The file `Font <name>` resolved to, straight from the core.
- func adoptFont(path: String) {
- wear(size: fontSize, path: path, resolvesRequest: true)
+ func adoptFont(path: String, sizeHundredths: UInt16) {
+ let size = sizeHundredths == 0 ? fontSize : CGFloat(sizeHundredths) / 100
+ wear(size: size, path: path, resolvesRequest: true)
}
/// Cmd+ and Cmd-. Whole points, because the cell is rounded to whole