Skip to content
This repository has been archived by the owner on Apr 7, 2022. 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 wkhtmltopdf#7 of webkit bug 92363:
https://bugs.webkit.org/show_bug.cgi?id=93263#c7
  • Loading branch information
Trevor North authored and james-emerton committed Nov 21, 2014
1 parent ef3de33 commit a7de9c5
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 a7de9c5

Please sign in to comment.