diff --git a/fonts.d b/fonts.d index 93bd39d..9f50d86 100644 --- a/fonts.d +++ b/fonts.d @@ -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); }