From 9a48fc73d7a25685fc7917c3edc271f595e093da Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 5 Aug 2025 19:07:06 -0400 Subject: pke: first-pass add asset details --- src/font.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/font.cpp') diff --git a/src/font.cpp b/src/font.cpp index deaf956..26004e3 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -252,9 +252,15 @@ void FontType_Init() { ft->glyphs = nullptr; ft->renders = nullptr; } + union pke_asset_details ak_img_details { + .texture = { + .width = 952, + .height = 952, + }, + }; AssetKey ak_img = "fnt_mquin_img\0\0"; AssetKey ak_glyphs = "fnt_mquin_gly\0\0"; - AssetHandle ah_img = AM_Register_Static(ak_img, PKE_ASSET_TYPE_TEXTURE, embedded_fonts[0].data, embedded_fonts[0].size); + AssetHandle ah_img = AM_Register_Static(ak_img, PKE_ASSET_TYPE_TEXTURE, embedded_fonts[0].data, embedded_fonts[0].size, &ak_img_details); AssetHandle ah_glyphs = AM_Register_Static(ak_glyphs, PKE_ASSET_TYPE_UNSET, embedded_fonts[1].data, embedded_fonts[1].size); FontTypeMSDFSettings msdf_s; msdf_s.minimum_scale = 144; -- cgit v1.2.3