Details
-
Task
-
Resolution: Done
-
P2: Important
-
6.0
-
None
-
-
f761ad3cd9ad1252f24b76ae413298dc7bed8af3
Description
QFontMetrics(F)::ascent() and descent() on Windows currently returns the values retrieved by the system, which is not the actual typographic ascent/descent of the font, but the so-called winAscent/winDescent, which is used to calculate the maximum possible height of a line of text, not the typographic bounds.
This means (needs confirmation) that when we lay out several text lines on Windows, the distance between them may be larger than on macOS or Freetype, and it will be inconsistent with how the font was actually designed.
To make this more consistent in Qt 6, we will make the ascent/descent on Windows return the same as on the other platforms, i.e. the typographic metrics from the font data.
Attachments
Issue Links
- is duplicated by
-
QTBUG-80553 Make font bounding rects consistent across platforms
- Closed
- resulted from
-
QTBUG-63964 QFontMetrics::boundingRect gives too shallow rect on Mac
- Closed
For Gerrit Dashboard: QTBUG-80554 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
283911,15 | Use consistent vertical metrics on all platforms | dev | qt/qtbase | Status: MERGED | +2 | 0 |
283912,5 | Use same ascent/descent values for text layouts on all platforms | dev | qt/qtbase | Status: ABANDONED | +1 | 0 |