New SVN version of nxPascal was just uploaded. Among many additions, i did the font saving and loading to file. 1024x1024 texture size courier font loaded up in 30ms... Yeah, that's 3 times faster than it generates a 256x256 font, and 1024 is so big font you rarely need it. The compression stream made font file size to 30kb. To make new font, do:
Code:
var f: TGLFont;
...
f:=TGLFont.CreateBMPAndSave('Courier', 50, 1024, 'courierBig.nxf');
// File extension doesn't matter. Use .nxf for clarity i guess.
f.Free;
Loading goes simply:
Code:
nx.LoadFont('courierBig.nxf');
Bookmarks