From 53fa54f8e9babc3a28226a1f7e7ec6478431e558 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Mon, 15 Jan 2024 00:21:11 +0000 Subject: [PATCH] Fix e1f5be62: Clear font cache when toggling sprite font. (#11780) This is necessary for the sprite font height and ascender to be updated correctly. --- src/settings_gui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index f4ec1ba298..3fededad82 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -573,6 +573,7 @@ struct GameOptionsWindow : Window { InitFontCache(false); InitFontCache(true); + ClearFontCache(); SetupWidgetDimensions(); ReInitAllWindows(true); break;