From 18a1a1a354def64a35aeafed09fc2ddeabce453b Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 15 Jun 2022 07:17:58 +0300 Subject: [PATCH 41/41] Qt: Set up proper fonts when the client starts Reported by ddeanbrown See osdn #44389 Signed-off-by: Marko Lindqvist --- client/gui-qt/gui_main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/gui-qt/gui_main.cpp b/client/gui-qt/gui_main.cpp index 75e608df11..df7288781a 100644 --- a/client/gui-qt/gui_main.cpp +++ b/client/gui-qt/gui_main.cpp @@ -186,6 +186,14 @@ void qtg_ui_main(int argc, char *argv[]) qtg_gui_clear_theme(); } freeciv_qt = new fc_client(); + + // Initial fonts setup by forcing running change-callback for each + options_iterate(client_optset, poption) { + if (OT_FONT == option_type(poption)) { + option_changed(poption); + } + } options_iterate_end; + freeciv_qt->fc_main(qapp); } } -- 2.35.1