If you work with strings in your Python scripts and you're writing obscure logic to process them, then you need to look into ...
BDF (Glyph Bitmap Distribution; Wikipedia; Spec) format bitmap font file parser library in Python. It has Font, Glyph and Bitmap classes providing more than 30 chainable API methods of parsing BDF ...
git clone --recurse-submodules https://github.com/maxim2266/str.git cd str make # or 'make test' to also run unit tests Link the resulting static library libstr.a ...