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.
|For Gerrit Dashboard: QTBUG-51024|
|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|