Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • It creates the C file (like nxfonts_bitmaps_sans17x22.c) by compiling nxfonts_bitmaps.c and including nxfonts_sans17x22.h to create the font dataset at build time.

The function{{ function nxf_getglyphset()}} in the file nxfonts_getfont.c selects the 7-bit font range (codes < 128) or the 8-bit range (code >= 128 > 256). The fonts are kept in simple arrays splitting the data up into ranges of values lets you above the non-printable codes at the beginning and end of each range. There is even a comment in the code there "Someday, perhaps 16-bit fonts will go here".

...