Initialize QFont with clean state
This commit is contained in:
parent
ce3459e249
commit
7e9dc6e4f2
1 changed files with 1 additions and 1 deletions
|
|
@ -315,7 +315,7 @@ struct Metrics {
|
||||||
const QString &family,
|
const QString &family,
|
||||||
FontFlags flags,
|
FontFlags flags,
|
||||||
int size) {
|
int size) {
|
||||||
auto font = QFont();
|
auto font = QFont(QFont().family());
|
||||||
|
|
||||||
const auto monospace = (flags & FontFlag::Monospace) != 0;
|
const auto monospace = (flags & FontFlag::Monospace) != 0;
|
||||||
const auto system = !monospace && (family == SystemFontTag());
|
const auto system = !monospace && (family == SystemFontTag());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue