From 1ede0bc994b6a863d442b211569a08a8c4b3b4eb Mon Sep 17 00:00:00 2001 From: Daniel Jalkut Date: Thu, 23 Sep 2021 01:23:04 -0400 Subject: [PATCH] When applying the system font size to the baseline CSS for the web view, use px instead of pt to specify the font size. This is consistent with best practices for web content, and alleviates a problem wherein the text in the web view, if not based on a full-fledged release notes HTML document, appears too large. (#1962) --- Sparkle/SUWKWebView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparkle/SUWKWebView.m b/Sparkle/SUWKWebView.m index 6b0f0510..040d1405 100644 --- a/Sparkle/SUWKWebView.m +++ b/Sparkle/SUWKWebView.m @@ -88,7 +88,7 @@ static WKUserScript *_userScriptWithInjectedStyleSource(NSString *styleSource) WKUserContentController *userContentController = [[WKUserContentController alloc] init]; - NSString *fontStyleContents = [NSString stringWithFormat:@"body { font-family: %@; font-size: %dpt; }", fontFamily, fontPointSize]; + NSString *fontStyleContents = [NSString stringWithFormat:@"body { font-family: %@; font-size: %dpx; }", fontFamily, fontPointSize]; NSString *finalStyleContents; if (colorStyleContents == nil) {