qt5base-lts/src
Eskil Abrahamsen Blomfeldt bda75c81f5 Fix missing characters or assert with certain font sizes
The alphaMapBoundingBox() only exists to prefetch the size
of rendered alpha maps, to reserve space in the glyph cache.
Since 104e6d0f54 we have not
used the QPainterPath fallback code path when actually
rendering the glyphs, but that patch neglected to update the
code that retrieved the bounding box.

This could in some cases cause a mismatch, and if the alpha
map we ended up with in the end was larger than the reserved
space, this could trigger an assert or an empty spot in the
cache.

[ChangeLog][Text][Freetype] Fixed an issue where characters
would in some rare cases be missing from text, depending on
font metrics, font size and system scale factor.

Pick-to: 5.15 6.2
Fixes: QTBUG-86633
Change-Id: Ic8ade168115e4f51bac71539325936bbae993120
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2021-12-01 21:48:49 +01:00
..
3rdparty 3rdparty: Add touchpad gestures support to bundled xinput xcb module 2021-11-13 17:58:45 +03:00
android Docs: Move manifest and androiddeployqt docs to where code lives 2021-11-19 12:18:50 +00:00
concurrent Doc: Enable qdoc warning count limit 2021-10-21 19:10:52 +02:00
corelib QVarLengthArray: More Self-Encapsulate Field 2021-12-01 15:03:34 +01:00
dbus Doc: Fix qdoc warnings 2021-11-11 11:34:49 +01:00
entrypoint QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
gui Fix missing characters or assert with certain font sizes 2021-12-01 21:48:49 +01:00
network QNAM: Disable h2c by default 2021-11-30 00:04:38 +01:00
opengl Don't overwrite flipped textureTransform with unflipped on next blit 2021-12-01 15:03:34 +01:00
openglwidgets Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
platformsupport evdevtouch: Fix loading screen name for output mapping 2021-10-12 12:52:01 +02:00
plugins wasm: Fix assert/crash when tooltip window is closed and mouse moved 2021-12-01 12:28:27 +10:00
printsupport Link printer plugins into user projects when using a static Qt 2021-11-19 18:48:07 +01:00
sql Doc: Enable qdoc warning count limit 2021-10-21 19:10:52 +02:00
testlib Verify returns from QXmlTestLogger's xmlQuote() and xmlCdata() 2021-11-30 12:26:08 +01:00
tools Long live Q_GADGET_EXPORT! 2021-11-27 01:25:10 +01:00
widgets QTabBar: clamp maxScrollOffset before using it in qBound 2021-12-01 15:03:34 +01:00
xml Remove leftovers for supporting SAX-based implenentation of QDomDocument 2021-11-26 22:42:40 +01:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00