summaryrefslogtreecommitdiff
path: root/src/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.cpp')
-rw-r--r--src/font.cpp8
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;