Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dcc2f40

Browse files
committed
Fixes to type1font.py
Slanting and extending had been broken
1 parent f6d6c7a commit dcc2f40

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/type1font.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def replacer(tokens):
283283
token, value = next(tokens) # name, e.g., /FontMatrix
284284
yield bytes(value)
285285
token, value = next(tokens) # possible whitespace
286-
while token == 'whitespace':
286+
while token is cls._whitespace:
287287
yield bytes(value)
288288
token, value = next(tokens)
289289
if value != '[': # name/number/etc.
@@ -309,7 +309,7 @@ def suppress(tokens):
309309

310310
while True:
311311
token, value = next(tokens)
312-
if token == 'name' and value in table:
312+
if token is cls._name and value in table:
313313
for value in table[value](itertools.chain([(token, value)],
314314
tokens)):
315315
yield value

0 commit comments

Comments
 (0)