aboutsummaryrefslogtreecommitdiff
path: root/font.c
diff options
context:
space:
mode:
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;
}
}