qt6-bb10/src
Eskil Abrahamsen Blomfeldt a5085d7f6a minor: Clean up areMetricsTooLarge() conditions
This amends e2bdff3555.

The linearAdvance property has some history. First it was
a 16 bit value (allowing for 10.6 fixed point numbers). Then
it was turned into 22 bits to fit the 16 bits of Freetype
integer parts into it (16.6). Then back to 10.6. Then in
b7e4367387 it was turned
back into 16.6 again. But this was accidentally reverted
as part of a bad conflict resolution in
afb326f071.

Since there was no check for it, we would sometimes overflow
the linearAdvance, but only in the rare cases where the
width and height did not also overflow. Specifically this
is the case for whitespace, which always has a width of 0
regardless of the advance.

This change just moves the linearAdvance condition in
together with the other checks to avoid fragmentation, and
also adds this fun story to the commit log.

Pick-to: 6.1 5.15
Change-Id: Iaac09942f4c50d1aced4a160b6eabb11eb8e6373
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
2021-05-27 10:13:55 +02:00
..
3rdparty Attributions: Don't mention QT_CRYPTOGRAPHICHASH_ONLY_SHA1 2021-05-23 11:47:42 +00:00
android Android: Fix select handles misplacement on QDialog 2021-05-25 08:45:39 +03:00
concurrent QtConcurrentIterateKernel: fix warning 2021-04-12 10:31:54 +00:00
corelib Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
dbus qdbus: add support for "aay" (QByteArrayList) 2021-05-02 22:00:43 +02:00
entrypoint Fix qmake user projects for QT_LIBINFIX builds on Windows/iOS 2021-03-17 09:04:56 +01:00
gui minor: Clean up areMetricsTooLarge() conditions 2021-05-27 10:13:55 +02:00
network QSsl::ImplementedClass - add DtlsCookie 2021-05-27 06:41:16 +02:00
opengl Introduce float QImage formats and rendering 2021-05-26 18:00:01 +02:00
openglwidgets Document QOpenGLWidget limitations without an alpha channel 2021-01-15 15:21:28 +01:00
platformsupport evdevtouch: Fix wrong addTouchPoint for "mtdev" 2021-02-23 14:22:20 +00:00
plugins QSsl::ImplementedClass - add DtlsCookie 2021-05-27 06:41:16 +02:00
printsupport Make sure _q_printerChanged is called even if only pdf printer is available 2021-05-21 11:03:18 +02:00
sql Doc: Use \deprecated instead of \obsolete 2021-05-26 13:06:56 +02:00
testlib QTestlib: Add formatting for QObject * in QCOMPARE 2021-05-26 11:02:48 +00:00
tools uic: Add further widgets to class lib map 2021-05-25 22:01:56 +02:00
widgets Partially modified to use C++11 standard nullptr 2021-05-27 03:24:40 +08:00
xml Doc: Use \deprecated instead of \obsolete 2021-05-26 13:06:56 +02:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00