Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.8.0
-
None
-
Windows 7
-
e316519c0e0e1c77aa1039d58776631800f29149
Description
QFontEngineDirectWrite doesn't override QFontEngine::underlinePosition to return the font's correct underline position, meaning that underlining looks very bad when using the DirectWrite engine.
To see this, build and run the attached test app. The underlining looks great with the GDI engine used by default. Now switch on the 'DirectWrite' checkbox. Observe that the underlining moves far too close to the text. The font is Times New Roman.
The correct underline poisition is available from the DWRITE_FONT_METRICS structure and could be cached in QFontEngineDirectWrite::collectMetrics.
Attachments
For Gerrit Dashboard: QTBUG-22656 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
30536,2 | Get font's underline position in DirectWrite font engine | master | qt/qtbase | Status: MERGED | +2 | 0 |