aboutsummaryrefslogtreecommitdiff
path: root/font.c
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-10-14 16:20:23 -0400
committerJack Jamison <jackqjamison@gmail.com>2025-10-14 16:20:23 -0400
commit92b0fd4608e11d505c4aabee9449ad564aaae69d (patch)
tree8fe59efeee5cc1179622ce88d3e739ef0573edaa /font.c
parent5fa96e59fa378af36e90cdd8ee741d164304e3b8 (diff)
bearing works
Diffstat (limited to 'font.c')
-rw-r--r--font.c4
1 files changed, 2 insertions, 2 deletions
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;
}
}