| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Indeed, reading through afm.py, it looks like it expects all of the reads to return bytestrings given that it does comparisons against literal byte-strings. |
Sorry, something went wrong.
|
This piqued my interest a bit, and I noticed that we are inconsistent with how we are opening the AFM files. Grepping through reveals a few more non-binary open() calls. Would you like to fix those, too? |
Sorry, something went wrong.
|
actually, looks like that was the only one, although the one in font_manager.py could benefit from context manager. I'll backport just this. |
Sorry, something went wrong.
Fix read mode when loading cached AFM fonts
| Back | FazBrowse Home | New Git URL |
This fixes a typo to read cached AFM fonts as a byte string, as needed by the AFM class in afm.py. This bug is triggered when testing PR #5161.
cc: @mdboom