Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Commit 53226bf

Browse files
Trevor Northashkulz
authored andcommitted
Improve font kerning
This is the workaround proposed in comment #7 of webkit bug 92363: https://bugs.webkit.org/show_bug.cgi?id=93263#c7
1 parent b7c2c15 commit 53226bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/3rdparty/webkit/Source/WebCore/platform/graphics/qt/FontPlatformDataQt.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ FontPlatformData::FontPlatformData(const FontDescription& description, const Ato
7373
font.setLetterSpacing(QFont::AbsoluteSpacing, letterSpacing);
7474
const bool smallCaps = description.smallCaps();
7575
font.setCapitalization(smallCaps ? QFont::SmallCaps : QFont::MixedCase);
76-
font.setStyleStrategy(QFont::ForceIntegerMetrics);
76+
// Commented out to work around webkit bug 93263
77+
//font.setStyleStrategy(QFont::ForceIntegerMetrics);
7778

7879
m_data->bold = font.bold();
7980
// WebKit allows font size zero but QFont does not. We will return

0 commit comments

Comments
 (0)