mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Gate the font size style substitution
This commit is contained in:
@@ -266,8 +266,10 @@ private extension ArticleRenderer {
|
||||
func styleSubstitutions() -> [String: String] {
|
||||
var d = [String: String]()
|
||||
|
||||
let bodyFont = NSFont.preferredFont(forTextStyle: .body)
|
||||
d["font-size"] = String(describing: Int(round(bodyFont.pointSize * 1.33)))
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user