Fix two crashes on slightly broken font files · matplotlib/matplotlib@b9e71c5 · GitHub
Skip to content

Commit b9e71c5

Browse files
committed
Fix two crashes on slightly broken font files
The zeros at the end are not needed by our implementation so don't crash if there are too few. Always pass an even number of bytes to unhexlify.
1 parent b81313f commit b9e71c5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

lib/matplotlib/type1font.py

Lines changed: 7 additions & 2 deletions

0 commit comments

Comments
 (0)