From 7e9dc6e4f2c6092cae9a59e0b29f47bdbd43f002 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 3 May 2024 21:23:15 +0400 Subject: [PATCH] Initialize QFont with clean state --- ui/style/style_core_font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());