aboutsummaryrefslogtreecommitdiff
path: root/font.c
diff options
context:
space:
mode:
authorJack Jamison <jackqjamison@gmail.com>2025-10-14 15:32:16 -0400
committerJack Jamison <jackqjamison@gmail.com>2025-10-14 15:32:16 -0400
commit8296fa3a8fa773adbf7544910fd12f84c278cfc3 (patch)
tree16417661e1efd266438171abc932cde357121ebd /font.c
parent458f9d0b5f1b83d3f2e11cead790cdf6ac867e11 (diff)
text rendering which doesn't work
Diffstat (limited to 'font.c')
-rw-r--r--font.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/font.c b/font.c
index 371a0f9..ef95d79 100644
--- a/font.c
+++ b/font.c
@@ -122,6 +122,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;
}
}