diff --git a/ui/style/style_core_font.cpp b/ui/style/style_core_font.cpp index 5d15790..39f98a1 100644 --- a/ui/style/style_core_font.cpp +++ b/ui/style/style_core_font.cpp @@ -315,7 +315,7 @@ struct Metrics { const QString &family, FontFlags flags, int size) { - auto font = QFont(); + auto font = QFont(QFont().family()); const auto monospace = (flags & FontFlag::Monospace) != 0; const auto system = !monospace && (family == SystemFontTag());