# HG changeset patch # User Peter Nelson # Date 2024-01-15 00:21:11 # Node ID 8bd43cc2ea42c30699ecfbd65f975f4cc28a316e # Parent 56b8cae2790d078436aca92f77ce475f5e1f1d79 Fix e1f5be62: Clear font cache when toggling sprite font. (#11780) This is necessary for the sprite font height and ascender to be updated correctly. diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp --- 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;