add constructor for fonts module

This commit is contained in:
Matthew 2025-10-25 13:28:16 +11:00
parent f5fdd05336
commit c83ffabce6

View File

@ -47,7 +47,7 @@ struct Glyph
f32 atlas_top;
}
FT_Library FT_LIB;
__gshared FT_Library FT_LIB;
alias FontFace = FT_Face;
struct FontAtlasBuf
@ -56,8 +56,7 @@ struct FontAtlasBuf
FontAtlas atlas;
}
void
InitFreeType()
shared static this()
{
FT_Init_FreeType(&FT_LIB);
}