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

Commit

Permalink
Improve font kerning
Browse files Browse the repository at this point in the history
This is the workaround proposed in comment #7 of webkit bug 92363:
https://bugs.webkit.org/show_bug.cgi?id=93263#c7
  • Loading branch information
Trevor North authored and ashkulz committed May 7, 2015
1 parent adc1530 commit 1ec7f19
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ FontPlatformData::FontPlatformData(const FontDescription& description, const Ato
font.setLetterSpacing(QFont::AbsoluteSpacing, letterSpacing);
const bool smallCaps = description.smallCaps();
font.setCapitalization(smallCaps ? QFont::SmallCaps : QFont::MixedCase);
font.setStyleStrategy(QFont::ForceIntegerMetrics);
// Commented out to work around webkit bug 93263
//font.setStyleStrategy(QFont::ForceIntegerMetrics);

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

0 comments on commit 1ec7f19

Please sign in to comment.