Tectu wrote:Just curious.... What happened to the font stuff? Afaikt nothing happened to the font stuff in the current version of the GLCD library? Do we have now more/other/better font rendering? Or is the program there to generate new stuff?
The original GLCD font code used a byte array table. The existing code accessed components from it assuming the endianness of the CPU. For a different CPU the code would not have worked. It also made non-word aligned accesses into the data which would have caused sig-faults on many processors. Even on those cpu's that do allow it there is a significant performance penalty. To change the maximum height of font from 16 to 32 would have required completly updated code and for the font data to be regenerated.
I therefore rewrote the code and changed the structure to allow extra metric information, correct word aligned accesses, correct behaviour regardless of endianness, and the optional ability to expand the maximum height of the font to 32 bits without having to generate new font tables. I also commented to font data so you can see which font data belongs to which character.
To make these changes I needed to convert the existing font array's. That is what the program was for.