diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-14 16:20:23 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-14 16:20:23 -0400 |
| commit | 92b0fd4608e11d505c4aabee9449ad564aaae69d (patch) | |
| tree | 8fe59efeee5cc1179622ce88d3e739ef0573edaa /font.c | |
| parent | 5fa96e59fa378af36e90cdd8ee741d164304e3b8 (diff) | |
bearing works
Diffstat (limited to 'font.c')
| -rw-r--r-- | font.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |
