diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2022-10-19 14:39:38 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2022-10-20 16:05:25 +0200 |
commit | cdd7163c6071ac2020a1750cf2820ecea057abe4 (patch) | |
tree | 71be710b1883e0003af69476d8be6ed37fe9346b /src/widgets/doc/snippets/mainwindowsnippet.cpp | |
parent | 2decbe04170842c23119dc752d45f51021773836 (diff) | |
download | qtbase-cdd7163c6071ac2020a1750cf2820ecea057abe4.tar.gz |
macOS: Fix synthetic bold on scaled painters
Bold synthesizing on macOS works by redrawing the text at a
subpixel offset. However, since the text position is given
in user space (pre-transformed) we need to scale the offset
by the current matrix, otherwise you can get large gaps between
the two instances of the text.
[ChangeLog][macOS] Fixed an issue with synthetic bold on
fonts when the painter had a scale
Fixes: QTBUG-103215
Change-Id: Idf0ae3da75a55825cbb5598561ef8fd9a512c6a5
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/mainwindowsnippet.cpp')
0 files changed, 0 insertions, 0 deletions