aboutsummaryrefslogtreecommitdiff
path: root/src/graphics
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-17 08:24:46 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-17 08:24:46 +0100
commitec3f4b294d0a1fe744d77c32ccd1aabb3c1a6b88 (patch)
tree62bea3549cd4f24b67f8146f25e5fdf2b2ea887f /src/graphics
parentc18f87ad13da518af5ff245dbce2a9e608097ea1 (diff)
Increase glyph padding
Diffstat (limited to 'src/graphics')
-rw-r--r--src/graphics/font.c4
1 files changed, 2 insertions, 2 deletions
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) {