2D font using a texture initialized from a FreeType font file.
This can load a font file, or it can use ready data in TTextureFontData. The latter allows to use this for fonts embedded in a Pascal source code, since our texturefont2pascal can convert a font ttf to a unit that defines ready TTextureFontData instance.
TTextureFontData instance containing loaded image and glyphs parameters.
OwnsData
If True, the Data instance becomes owned by this class (will be freed in our constructor). Usually you do not want this, since usually you pass Data from a unit generated by texturefont2pascal. In this case, the finalization of CastleTextureFont_Xxx unit will already free the TTextureFontData instance.