Tnx, Dreamora. I understand it when solved those bugs. My point in the best method will don't create font object (or its glyphs at least) before any initialisation of graphics mode at module level.
But now situation is so strange.
If don't init graphics mode, but create any font object. We can access to the same of glyphs of this font. But some of existing glyphs is unavailable until graphics being initialized.
ps:sorry for my bad english.
font:TImageFont = LoadImageFont("font.ttf", 16)This code will init the font variable with null. Bu this code:
graphics 640,480,32 font:TImageFont = LoadImageFont("font.ttf", 16)Will init font variable with properly font object.
But now situation is so strange.
If don't init graphics mode, but create any font object. We can access to the same of glyphs of this font. But some of existing glyphs is unavailable until graphics being initialized.
ps:sorry for my bad english.