tchapi / Adafruit-GFX-Font-Customiser

A little utility to customise pixel fonts for the Adafruit GFX library
https://tchapi.github.io/Adafruit-GFX-Font-Customiser/
MIT License
90 stars 47 forks source link

unescaped \ in comment -> exported file is not valid #26

Closed petrbrouzda closed 3 years ago

petrbrouzda commented 3 years ago

Map of characters seems like this: image

The \ character at the very end of line means "next line to be appended here". So next line is appended - as a part of commentary. So character 0x5D is not defined - after 0x5C follows the definition od 0x5E. All subsequent characters are off-by-one and if you try to render last character (0x7e), random data occures.

tchapi commented 3 years ago

Hi @petrbrouzda

This seems indeed like a bug, I will issue a fix soon !

tchapi commented 3 years ago

This should be fixed with https://github.com/tchapi/Adafruit-GFX-Font-Customiser/commit/8b9c351d821c12791d3267b53c15bd8dbf8e6a89

petrbrouzda commented 3 years ago

Thank you.