From 31754a0afddaeeded4735f8826a29f45cb417f1a Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sat, 3 May 2025 18:34:45 +0100 Subject: [PATCH] Fix: Changing monospace font didn't refresh the monospace width cache. (#14185) --- src/fontcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fontcache.cpp b/src/fontcache.cpp index 8e584ac427..fb1d757c62 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -129,7 +129,7 @@ void SetFont(FontSize fontsize, const std::string &font, uint size) InitFontCache(true); } - LoadStringWidthTable(); + LoadStringWidthTable(fontsize == FS_MONO); UpdateAllVirtCoords(); ReInitAllWindows(true);