From ec3f4b294d0a1fe744d77c32ccd1aabb3c1a6b88 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 17 Nov 2021 08:24:46 +0100 Subject: Increase glyph padding --- src/graphics/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphics/font.c') diff --git a/src/graphics/font.c b/src/graphics/font.c index f73c023..1c3631d 100644 --- a/src/graphics/font.c +++ b/src/graphics/font.c @@ -4,8 +4,8 @@ #define STB_TRUETYPE_IMPLEMENTATION #include "../../external/stb_truetype.h" -/* Need padding so filtering doesn't touch pixels in another glyphs area */ -#define GLYPH_PADDING 2 +/* Need padding so filtering doesn't touch pixels in another glyphs area. TODO: Decrease this */ +#define GLYPH_PADDING 4 #define GLYPH_UPSAMPLE 1 int mgl_font_load_from_file(mgl_font *self, const mgl_memory_mapped_file *mapped_file, unsigned int character_size) { -- cgit v1.2.3