From e5ce9a06cdcd25a7bd1155160a2a95f1a48998fc Mon Sep 17 00:00:00 2001 From: Botch Date: Sun, 12 Apr 2026 21:55:07 -0600 Subject: [PATCH] fix: Disable font mipmapping (#1410) Fixes visual artifacts with signs, improving legibility at distances --- Minecraft.Client/Font.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Minecraft.Client/Font.cpp b/Minecraft.Client/Font.cpp index 1040eaa0..ff5b7ef2 100644 --- a/Minecraft.Client/Font.cpp +++ b/Minecraft.Client/Font.cpp @@ -310,6 +310,8 @@ void Font::draw(const wstring &str, bool dropShadow, int initialColor) t->begin(); t->color(currentColor & 0x00ffffff, (currentColor >> 24) & 255); + bool prev = t->setMipmapEnable(false); // Disable mipmapping for fonts, and save previous enabled value to be restored later - Botch + for (int i = 0; i < static_cast(cleanStr.length()); ++i) { // Map character @@ -371,6 +373,8 @@ void Font::draw(const wstring &str, bool dropShadow, int initialColor) addCharacterQuad(c); } + t->setMipmapEnable(prev); //Reinstates previously used enabled value - Botch + t->end(); }