summaryrefslogtreecommitdiff
path: root/src/font.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-02-12 09:45:17 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-02-12 09:45:17 -0500
commitf8b69d8a6832369c16dd10cc28d428690cda11b2 (patch)
tree5a9c7414be061908c68aa4858dde4744b7c1614a /src/font.hpp
parent26f5f1ccd0681797e49cf932dd417b7221adaa06 (diff)
pke: FontTypeSpacing usage and serialization
Diffstat (limited to 'src/font.hpp')
-rw-r--r--src/font.hpp4
1 files changed, 2 insertions, 2 deletions
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);