aboutsummaryrefslogtreecommitdiff
path: root/state.h
diff options
context:
space:
mode:
authorRiley Beckett <rbeckettvt@gmail.com>2025-10-12 19:19:03 -0400
committerRiley Beckett <rbeckettvt@gmail.com>2025-10-12 19:19:03 -0400
commit458f9d0b5f1b83d3f2e11cead790cdf6ac867e11 (patch)
treeae3dd115a00695eec838d62a4181b2753dbb89b0 /state.h
parentd71f3c26c26c22ac6782944f5732274abe64f8f8 (diff)
get width of string
Diffstat (limited to 'state.h')
-rw-r--r--state.h7
1 files changed, 4 insertions, 3 deletions
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;