Details
-
Bug
-
Resolution: Won't Do
-
P1: Critical
-
None
-
6.2.3, 6.3.0 Beta1
-
None
-
macOS 12.1
Description
Qt 6.2.3 and 6.3.0 Alpha calculate bounding rects improperly for a lot of fonts on macOS. This was not the case in 6.2.2 and it severely breaks my application when the user selects those fonts. Screenshots attached.
The fonts used in the example are all fonts that come preinstalled with macOS.
Here's what happens in the attached screenshot:
- For each font, the bounding rect is calculated using QFontMetricsF::boundingRect(const QString &text)
- The bounding rect is drawn
- The baseline of the text is drawn (by definition of the bounding rect, this is the line at y=0)
- The text is drawn
On Qt 6.2.3 and Qt 6.3.0 Alpha, these fonts do not align with the bounding rect.
Attachments
Issue Links
- relates to
-
QTBUG-100304 Incorrect bounding rect calculations on Windows
- Closed
- resulted in
-
QTBUG-100634 doc: Document better the availability of Freetype on all platforms
- Reported
-
QTBUG-100633 Create API to select vertical metrics on fonts
- Reported