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

Skip to content

Commit 582084b

Browse files
committed
Use hex for character code ids -- it's more consistent with how Unicode code points are usually represented.
1 parent a0e0387 commit 582084b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/textpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def _get_char_id(self, font, ccode):
5050
Return a unique id for the given font and character-code set.
5151
"""
5252
ps_name = font.get_sfnt()[(1,0,0,6)]
53-
char_id = urllib.quote('%s-%d' % (ps_name, ccode))
53+
char_id = urllib.quote('%s-%x' % (ps_name, ccode))
5454
return char_id
5555

5656
def _get_char_id_ps(self, font, ccode):

0 commit comments

Comments
 (0)