From 458f9d0b5f1b83d3f2e11cead790cdf6ac867e11 Mon Sep 17 00:00:00 2001 From: Riley Beckett Date: Sun, 12 Oct 2025 19:19:03 -0400 Subject: get width of string --- state.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'state.h') diff --git a/state.h b/state.h index 1929cad..b3f8600 100644 --- a/state.h +++ b/state.h @@ -21,13 +21,13 @@ typedef struct { float advance_x, advance_y; uint32_t bitmap_width, bitmap_height; - uint32_t texture_offset; -} metrics_t; + float texture_offset; +} metric_t; typedef struct { uint32_t width, height; GLuint texture; - metrics_t metrics[128]; + metric_t metrics[128]; } atlas_t; typedef struct { @@ -66,6 +66,7 @@ typedef struct { FT_Library ft_library; FT_Face ft_face; + FT_Int32 load_flags; atlas_t atlas; -- cgit v1.2.3