path: root/src/corelib/serialization/qcborcommon.h
diff options
authorEskil Abrahamsen Blomfeldt <>2021-05-06 07:57:45 +0200
committerEskil Abrahamsen Blomfeldt <>2021-05-06 15:46:37 +0200
commit76d3cda88469137050f6aab4bbb8578061fe25f2 (patch)
tree65fa1b7995102622960d0aeae6dd35f3f6c63e7d /src/corelib/serialization/qcborcommon.h
parenta1e405ce11eb6760ccca13cf1b4e5d20fa3916e9 (diff)
macOS: Fix synthesized boldHEADdev
When a user requested bold and there was no available font for this (which is quite common with CJK fonts and in fact is the case for the official Japanese font on the system), we should synthesize the boldness. This was done by checking if the requested font weight boldness matched the one in the font's traits, and if not, we flag the font boldness to be synthesized. But when initializing the font, we would first override the requested weight with the selected font's weight, *before* performing the check above. So even if there was a mismatch, we would not catch this and as a result, e.g. the system Japanese font would never be bold. [ChangeLog][macOS] Fixed an issue where boldness would not be correctly synthesized for families with no bold variant. Fixes: QTBUG-85634 Pick-to: 5.15 6.1 Change-Id: I36da59d7689455e29cca283cb0724a0841095918 Reviewed-by: Konstantin Ritt <> Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'src/corelib/serialization/qcborcommon.h')
0 files changed, 0 insertions, 0 deletions