diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-05 19:07:06 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2025-08-06 17:00:26 -0400 |
| commit | 9a48fc73d7a25685fc7917c3edc271f595e093da (patch) | |
| tree | 0f400205af7d419e9f4fb40ebd3ad1db12c49219 /src/font.cpp | |
| parent | f7d860cee74ad3b94e0d15ea157783b7760f6d55 (diff) | |
pke: first-pass add asset details
Diffstat (limited to 'src/font.cpp')
| -rw-r--r-- | src/font.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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; |
