From f8b69d8a6832369c16dd10cc28d428690cda11b2 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Wed, 12 Feb 2025 09:45:17 -0500 Subject: pke: FontTypeSpacing usage and serialization --- src/font.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/font.hpp') diff --git a/src/font.hpp b/src/font.hpp index 4d0d0a7..9be881c 100644 --- a/src/font.hpp +++ b/src/font.hpp @@ -46,7 +46,7 @@ struct FontTypeMSDFSettings { float px_range; }; struct FontTypeSpacing { - double geometryScale; + double geometry_scale; double em_size; double ascender_y; double descender_y; @@ -93,7 +93,7 @@ void FontType_Tick(); void FontType_Serialize(std::ofstream &stream, FontType *ft); void FontType_Deserialize(std::ifstream &stream); FontType* FontType_GetFonts(FontTypeIndex &count); -FontTypeIndex FontType_RegisterFont(pk_cstr title, AssetHandle fontTextureHandle, AssetHandle glyphsHandle); +FontTypeIndex FontType_RegisterFont(pk_cstr title, AssetHandle fontTextureHandle, AssetHandle glyphsHandle, FontTypeSpacing *spacing); void FontType_Unload(FontTypeIndex idx); FontRender FontType_AddStringRender(FontTypeIndex idx_ft, pk_cstr cstr); void FontType_RemoveStringRender(FontRender fr); -- cgit v1.2.3