Results 1 to 10 of 179

Thread: nxPascal

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    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');
    Last edited by User137; 20-11-2012 at 09:49 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •