diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2019-01-28 08:22:33 +0100 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2019-01-29 17:36:24 +0000 |
commit | 4514cf27b27a9b334d49b969760856751d0b227a (patch) | |
tree | 0d56cd795728ab14b375bd83e9804cb9d90c7487 /src/corelib/tools/qsimd.cpp | |
parent | 9906cc57ed3eed64d534f43c677bb16e08561bb6 (diff) |
Fix default font properties when using raw fonts for text layouts
When a QRawFont is set explicitly on the layout, we would get certain
font properties from the QTextCharFormat instead. But when the properties
had not been set on the QTextCharFormat, we would get the default values
which were always 0/false, not the actual default values used in QFont.
Instead, we calculate a QFont query based on the format and use the
properties from this. This will give us the correct default values
in the cases where they are not overridden.
Change-Id: I53e5103739164c3d9eafaf76fcb4e8bda57bd12a
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/tools/qsimd.cpp')
0 files changed, 0 insertions, 0 deletions