path: root/src/plugins/platforminputcontexts/ibus
diff options
authorEskil Abrahamsen Blomfeldt <>2021-01-12 08:39:14 +0100
committerEskil Abrahamsen Blomfeldt <>2021-01-12 09:10:35 +0100
commit6a3f8cbc3ad47d8585aac25d3775ed2350afe20c (patch)
treefc6a2463c4edfc1f67c8c94e4c285b3ca490cea2 /src/plugins/platforminputcontexts/ibus
parent7b7dda654acda884b8ebf6e7f2bfed315a566801 (diff)
Use design metrics when adding text to QPainterPath
When we add text to QPainterPath, we will add the design metrics (unhinted glyphs) and scale these down to match the target font size. But the glyph positions we pass in are based on the hinted metrics, samples at the target font size. Thus, on fonts/systems with hinting, these do not match the scaled design metrics outlines. To fix this issue, we make sure the text layout uses design metrics when determining the glyph positions. [ChangeLog][QtGui][Text] Fixed an issue where QPainterPath::addText() would get inconsistent kerning for smaller font sizes when hinting is enabled. Fixes: QTBUG-20900 Pick-to: 5.15 Pick-to: 6.0 Change-Id: I651997d1a6a86e6271557438afa2cdad078a83ca Reviewed-by: Lars Knoll <>
Diffstat (limited to 'src/plugins/platforminputcontexts/ibus')
0 files changed, 0 insertions, 0 deletions