diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-18 13:10:59 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-18 13:10:59 -0400 |
| commit | acef4398df70b984ad6f2f403b2fa55c72219c73 (patch) | |
| tree | 34f1a4a87929d9d4aefec12c0e015ef2b8d0ccc8 /font.c | |
| parent | 24fb6ee3b2d6e3c68410e439c7395f5058dabce5 (diff) | |
improve text rendering
Diffstat (limited to 'font.c')
| -rw-r--r-- | font.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -62,7 +62,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 | FT_LOAD_TARGET_(FT_RENDER_MODE_SDF); + state->load_flags = FT_LOAD_RENDER; state->line_height = state->ft_face->size->metrics.height >> 6; return true; } @@ -96,8 +96,8 @@ void atlas_create_texture(client_state* state) { glGenTextures(1, &state->atlas.texture); glBindTexture(GL_TEXTURE_2D, state->atlas.texture); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); |
