peterhinch / micropython-font-to-py

A Python 3 utility to convert fonts to Python source capable of being frozen as bytecode
MIT License
385 stars 69 forks source link

Incorrect bit-maps generated for 'J', 'K' and 'R' (and perhaps others) #21

Closed ironss closed 4 years ago

ironss commented 4 years ago

DejaVu Sans capital J has a negative bitmap left value: the bottom of the J extends underneath the previous character in the string.

DejaVu Sans capital K and R has a bitmap that extends past the 'advance' value. The bottom leg extends underneath the next character in the string.

These problems came about after a previous character spacing fix.

https://github.com/ironss/micropython-font-to-py/commit/e73da4cbbd669148d486b0717c793a5415ce32a2 is a fix that handles both of these.

peterhinch commented 4 years ago

Thank you. Now implemented.