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 --- font.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'font.h') diff --git a/font.h b/font.h index ee51443..762fe53 100644 --- a/font.h +++ b/font.h @@ -4,7 +4,10 @@ char* get_font(const char* font_name); -bool init_freetype(client_state* state, const char* font); -bool init_atlas(client_state* state); +bool freetype_init(client_state* state, const char* font); +void atlas_init(client_state* state); +void atlas_create_texture(client_state* state); + +int atlas_get_strwidth(client_state* state, const char* str); #endif // FONT_H_ -- cgit v1.2.3