From 92b0fd4608e11d505c4aabee9449ad564aaae69d Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Tue, 14 Oct 2025 16:20:23 -0400 Subject: bearing works --- font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'font.c') diff --git a/font.c b/font.c index 533788c..85e0a24 100644 --- a/font.c +++ b/font.c @@ -111,7 +111,7 @@ void atlas_create_texture(client_state* state) { } metric_t* metric = &state->atlas.metrics[i]; - metric->texture_offset = (float)x / state->atlas.width; + metric->texture_x_start = (float)x / state->atlas.width; glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glTexSubImage2D( @@ -125,7 +125,7 @@ void atlas_create_texture(client_state* state) { GL_UNSIGNED_BYTE, state->ft_face->glyph->bitmap.buffer); x += state->ft_face->glyph->bitmap.width; - metric->texture_size = (float)x / state->atlas.width; + metric->texture_x_end = (float)x / state->atlas.width; } } -- cgit v1.2.3