diff --git a/System/Utilities/TrueType.HC b/System/Utilities/TrueType.HC index 3e3d5fa..34e52c1 100644 --- a/System/Utilities/TrueType.HC +++ b/System/Utilities/TrueType.HC @@ -47,4 +47,15 @@ U8* @stbtt_RenderText(stbtt_fontinfo* info, I32 b_w, I32 b_h, I32 l_h, U8* word) } } +U8* @stbtt_GetFontNameDefault(stbtt_fontinfo* font, I32* length) +{ + U64 reg RDI rdi = font; + U64 reg RSI rsi = length; + no_warn rdi, rsi; + asm { + MOV RAX, STBTT_GETFONTNAMEDEFAULT + CALL RAX + } +} + "truetype "; diff --git a/scripts/build-all b/scripts/build-all index 2e78a36..102050e 100755 --- a/scripts/build-all +++ b/scripts/build-all @@ -161,6 +161,7 @@ def generate_iso_c_file(): truetype_hc_fixup('STBTT_INITFONT', 'stbtt_InitFont', truetype_bin_path, truetype_hc_path) truetype_hc_fixup('STBTT_RENDERTEXT', 'stbtt_RenderText', truetype_bin_path, truetype_hc_path) + truetype_hc_fixup('STBTT_GETFONTNAMEDEFAULT', 'stbtt_GetFontNameDefault', truetype_bin_path, truetype_hc_path) # Fixup addresses for Tlse.HC