summaryrefslogtreecommitdiff
path: root/src/font.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-05-21 16:25:53 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-05-21 16:25:53 -0400
commitf42e0d2d433ae126a32a604835598a1d8b7150f1 (patch)
tree40109c896005f8022531cd9a4c71b898983326d2 /src/font.hpp
parent4b1615c76b5b4fe110eb01392c98eddaf03bb103 (diff)
pke: reference FontType via title over uuid
Diffstat (limited to 'src/font.hpp')
-rw-r--r--src/font.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/font.hpp b/src/font.hpp
index a8b1ecf..f07e640 100644
--- a/src/font.hpp
+++ b/src/font.hpp
@@ -119,6 +119,7 @@ void FontType_Tick(double delta);
void FontType_Serialize(std::ostream &stream, FontType *ft);
void FontType_Deserialize(std::istream &stream);
FontType* FontType_Get(FontTypeIndex idx);
+FontType* FontType_GetByTitle(const pk_cstr title);
FontType* FontType_GetFonts(FontTypeIndex &count);
FontTypeIndex FontType_RegisterFont(pk_cstr title, AssetHandle fontTextureHandle, AssetHandle glyphsHandle, FontTypeMSDFSettings *msdf_settings, FontTypeSpacing *spacing);
void FontType_Unload(FontTypeIndex idx);