From e5ca1d93d52b2a5cfe99f5f2197e2b215fe694fe Mon Sep 17 00:00:00 2001 From: Riley Beckett Date: Mon, 20 Oct 2025 00:34:14 -0400 Subject: maybe this works --- font.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/font.c b/font.c index c67e427..9d9fc6d 100644 --- a/font.c +++ b/font.c @@ -3,6 +3,7 @@ #include "font.h" #include "array.h" #include "config.h" +#include const float ATLAS_PADDING = 3.0f; @@ -56,6 +57,9 @@ bool freetype_init(client_state* state, const char* file) { fprintf(stderr, "Failed to intalize FreeType Library\n"); return false; } + FT_Bool no_stem_darkening = true; + FT_Property_Set(state->ft_library, "cff", + "no-stem-darkening", &no_stem_darkening ); if (FT_New_Face(state->ft_library, file, 0, &state->ft_face)) { fprintf(stderr, "Failed to create font\n"); return false; @@ -64,7 +68,7 @@ bool freetype_init(client_state* state, const char* file) { fprintf(stderr, "Failed to set font size\n"); return false; } - state->load_flags = FT_LOAD_RENDER; + state->load_flags = FT_LOAD_RENDER | FT_LOAD_TARGET_NORMAL; state->line_height = state->ft_face->size->metrics.height >> 6; state->horizontal_spacing = state->line_height / 2.0f; -- cgit v1.2.3