summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwritedeclaration.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-04-08 14:38:32 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-04-26 12:30:53 +0200
commit1593b1f6d610ce9bdb9dff4104f7f447e03a9585 (patch)
tree6e93417d16dfaff4031fb9f51c371e5ea0e481eb /src/tools/uic/cpp/cppwritedeclaration.h
parentd04deafed932d955e2e94324ec5b1a261fdb3332 (diff)
Introduce optional smarter font merging with ContextFontMergingHEADdev
This introduces an optional, slightly more expensive approach to font merging which takes the full string into account, instead of just going character by character. This addresses the issue that you may sometimes get multiple fonts to cover one string of text in a single language. With Chinese, this is especially an issue because many fonts will only support parts of the very large character set. The new algorithm detects if the string was incompletely covered by the font and tries the fallback fonts in order to find the best match. This is obviously more expensive, especially if no perfect match is found and we have to check all the fallbacks in the list, but it is opt-in and only enabled if the ContextFontMerging flag is set. Task-number: QTBUG-121131 Change-Id: I8c7874d0918640bd83418e3c4726c89f43a220a3 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppwritedeclaration.h')
0 files changed, 0 insertions, 0 deletions