From 05f3a8bdd5fe9cac149d2f64b9ec0a3126ae7006 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Thu, 1 May 2025 11:53:05 +0100 Subject: [PATCH] Fix: Changing monospace font didn't refresh the monospace width cache. --- 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);