summaryrefslogtreecommitdiffstats
path: root/src/network/access/qnetworkreply.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2022-10-17 10:41:20 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2022-10-18 16:15:51 +0200
commit6ba003f73295b896aa6dc1fba099daadb4760209 (patch)
tree86881cc291cbe859305b80d3792b5c092a555ed2 /src/network/access/qnetworkreply.cpp
parent30077d462dca28ba1acecc9413e97d115b46cb6d (diff)
Freetype: Fix transforming bitmap fonts
Freetype itself does not support transforming bitmap fonts, so FT_Set_Transform() is just ignored in this case. This causes problems in particular for fonts rotated at 90 degree multiples when used as tab labels. So we need to rotate the actual glyph images after they have been rasterized instead. Since we do have most of the mechanisms in place for this when using the regular glyph cache, we set cacheEnabled to false for all non-scalable fonts to ensure we take the correct code path. In addition, we need to transform the alpha maps before returning them. Note: This changes the glyph format to alpha8 for the glyphs when they are transformed. This is a simplification because the mono code path requires that glyph widths are aligned to 8, so there would be more adaptation needed if we wanted to use this code path. This will only affect non-antialiased fonts that are drawn with a transform. [ChangeLog][QtGui][Text] Fixed an issue with the Freetype backend where rotations would not be applied correctly to bitmap fonts. Fixes: QTBUG-81540 Change-Id: Ia68815b425ca1776a5ff81d26d227569467095cf Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'src/network/access/qnetworkreply.cpp')
0 files changed, 0 insertions, 0 deletions