Gate the font size style substitution

This commit is contained in:
Maurice Parker 2020-08-03 10:45:29 -05:00
parent 8e22c711bf
commit 2ed0844efd
1 changed files with 4 additions and 2 deletions

View File

@ -266,8 +266,10 @@ private extension ArticleRenderer {
func styleSubstitutions() -> [String: String] {
var d = [String: String]()
if #available(macOS 10.16, *) {
let bodyFont = NSFont.preferredFont(forTextStyle: .body)
d["font-size"] = String(describing: Int(round(bodyFont.pointSize * 1.33)))
}
guard let linkColor = NSColor.controlAccentColor.usingColorSpace(.deviceRGB) else {
return d