diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-17 08:24:46 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-17 08:24:46 +0100 |
commit | ec3f4b294d0a1fe744d77c32ccd1aabb3c1a6b88 (patch) | |
tree | 62bea3549cd4f24b67f8146f25e5fdf2b2ea887f /src | |
parent | c18f87ad13da518af5ff245dbce2a9e608097ea1 (diff) |
Increase glyph padding
Diffstat (limited to 'src')
-rw-r--r-- | src/graphics/font.c | 4 |
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) { |