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

Commit a1826bb

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 a1826bb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/matplotlib/type1font.py

Lines changed: 5 additions & 2 deletions

0 commit comments

Comments
 (0)