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