Commit b665d515 authored by Lukáš Turek's avatar Lukáš Turek Committed by Albert Astals Cid
Browse files

Fix Bug 397752 - HTML articles appear very small

GrantleeViewFormatter converts user configured font size from points
to pixels, but there's no such conversion in AkregatorPart, where
QWebEngineSettings::setFontSize also expects the font size in pixels.
As a result fonts on sites using relative units (em or rem) are small,
unless DPI is close to 72. The point to pixel conversion should be
either in both places, or none. I chose the latter option, because
then the font sizes in Akregator match values in Falkon.

BUG: 397752
parent b65b4e40
Pipeline #50242 passed with stage
in 13 minutes and 23 seconds
......@@ -45,7 +45,7 @@ void GrantleeViewFormatter::addStandardObject(QVariantHash &grantleeObject)
grantleeObject.insert(QStringLiteral("absoluteThemePath"), mGrantleeThemePath);
grantleeObject.insert(QStringLiteral("applicationDir"), mDirectionString);
grantleeObject.insert(QStringLiteral("standardFamilyFont"), Settings::standardFont());
grantleeObject.insert(QStringLiteral("mediumFontSize"), pointsToPixel(Settings::mediumFontSize()));
grantleeObject.insert(QStringLiteral("mediumFontSize"), Settings::mediumFontSize());
QString GrantleeViewFormatter::formatFeed(Akregator::Feed *feed)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment