diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2022-03-14 15:10:32 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2022-03-17 18:43:29 +0000 |
commit | 69d525a6fa19934b3e57f503132bb4ab19f6b923 (patch) | |
tree | 0fe936ce4289a8811e28a0e51aba2ff4f19f9cfc /src/gui/util | |
parent | 173dd2a033ff9caf045cb150d68eca1ce37ac5e0 (diff) |
Avoid populating font family aliases if family matched
When trying to match a font request to fonts in the database we might
end up with a mismatch due to the style not being available, but the
font family itself was.
If that's the case there's no point in trying to populate font aliases,
so we explicitly propagate this fact back to QFontDatabasePrivate::findFont
so that it can choose to not populate family aliases.
Fixes: QTBUG-98369
Fixes: QTBUG-99216
Pick-to: 6.3 6.2 5.15
Change-Id: I14470554c73eace836f57cb65e63ada594ccf62e
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/gui/util')
0 files changed, 0 insertions, 0 deletions