From 36c4922a46aaf87bb9915902344dd55d74d461d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fernandes?= Date: Sat, 20 Jun 2026 12:01:35 +0100 Subject: [PATCH] Disable autohints in freetype Updating freetype to 2.14.3 causes some glyphs to be fuzzy. Disabling autohints in glyph loading fixes this. Since the font is size 16 and textureHeight is 16, it should be fine. Disclosure: I had an AI help me with this. --- src/graphics.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics.zig b/src/graphics.zig index 8aab3219c7..3bf4f84efd 100644 --- a/src/graphics.zig +++ b/src/graphics.zig @@ -1211,7 +1211,7 @@ const TextRendering = struct { // MARK: TextRendering glyphMapping.appendNTimes(0, index - glyphMapping.items.len + 1); } if (glyphMapping.items[index] == 0) { // glyph was not initialized yet. - try ftError(c.FT_Load_Glyph(freetypeFace, index, c.FT_LOAD_RENDER)); + try ftError(c.FT_Load_Glyph(freetypeFace, index, c.FT_LOAD_RENDER | c.FT_LOAD_NO_AUTOHINT)); const glyph = freetypeFace.*.glyph; const bitmap = glyph.*.bitmap; const width = bitmap.width;