Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 680edf7 commit 9dd6692Copy full SHA for 9dd6692
lib/matplotlib/type1font.py
@@ -297,13 +297,14 @@ def transform(self, effects):
297
multiplier by which the font is to be extended (so values less
298
than 1.0 condense). Returns a new :class:`Type1Font` object.
299
"""
300
-
301
- buffer = io.StringIO()
+ buffer = io.BytesIO()
302
try:
303
tokenizer = self._tokens(self.parts[0])
304
for value in self._transformer(tokenizer,
305
slant=effects.get('slant', 0.0),
306
extend=effects.get('extend', 1.0)):
+ if sys.version_info[0] >= 3 and isinstance(value, int):
307
+ value = chr(value).encode('latin-1')
308
buffer.write(value)
309
result = buffer.getvalue()
310
finally:
0 commit comments