Skip to content

Commit

Permalink
Merge pull request #3496 from tacaswell/eps_fontname_bytes
Browse files Browse the repository at this point in the history
BUG : fix str vs bytes issue in py3 in ps backend
  • Loading branch information
efiring committed Oct 4, 2014
2 parents 4896f46 + 181ce57 commit 958c938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/backends/backend_ps.py
Expand Up @@ -764,7 +764,7 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath=False, mtext=None):
except KeyError:
ps_name = sfnt[(3,1,0x0409,6)].decode(
'utf-16be')
ps_name = ps_name.encode('ascii', 'replace')
ps_name = ps_name.encode('ascii', 'replace').decode('ascii')
self.set_font(ps_name, prop.get_size_in_points())

cmap = font.get_charmap()
Expand Down

0 comments on commit 958c938

Please sign in to comment.