Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.5.1, 5.6.0 Beta
-
Windows 10 & Ubuntu 13.04
-
b8c1efcb887a2aa313fd843aa16a5be84d4189e6
Description
At least on Windows 10, functions QFontMetrics::width(), QFontMetrics::boundingRect() and QFontMetrics::tightBoundingRect() return rectangle that is too small or way too large for the font.
On Linux boundingRect() and tightBoundingRect() return a size that is smaller than the text that would be drawn.
In Qt 5.6 on Windows with native font engine, tightBoundingRect() is even worse than in Qt 5.5.1 where even height is unreasonably huge.
Attachments
Issue Links
- is required for
-
QTBUG-55342 DirectWrite issues
- Closed
- relates to
-
QTBUG-85936 TextMetrics.width does not always give a correct width for the given text and is sometimes too short depending on the font used
- Closed
For Gerrit Dashboard: QTBUG-51024 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
168327,2 | DirectWrite: Fix calculating bounding box of glyphs | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |
181817,4 | DirectWrite: Fix calculating bounding box of glyphs | tqtc/vxworks-5.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |