Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 91f8cc0

Browse filesBrowse files
committed
Cleanup some variable names.
svn path=/branches/transforms/; revision=4523
1 parent ed37eff commit 91f8cc0
Copy full SHA for 91f8cc0

File tree

Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed

‎lib/matplotlib/backends/backend_pdf.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_pdf.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -682,12 +682,12 @@ def get_char_width(charcode):
682682
descriptor['MaxWidth'] = max(widths)
683683

684684
# Make the "Differences" array, sort the ccodes < 255 from
685-
# the two-byte ccodes, and build the whole set of glyph ids
685+
# the multi-byte ccodes, and build the whole set of glyph ids
686686
# that we need from this font.
687687
cmap = font.get_charmap()
688688
glyph_ids = []
689689
differences = []
690-
two_byte_chars = Set()
690+
multi_byte_chars = Set()
691691
for c in characters:
692692
ccode = ord(c)
693693
gind = cmap.get(ccode) or 0
@@ -696,7 +696,7 @@ def get_char_width(charcode):
696696
if ccode <= 255:
697697
differences.append((ccode, glyph_name))
698698
else:
699-
two_byte_chars.add(glyph_name)
699+
multi_byte_chars.add(glyph_name)
700700
differences.sort()
701701

702702
last_c = -2
@@ -715,7 +715,7 @@ def get_char_width(charcode):
715715
charprocDict = { 'Length': len(stream) }
716716
# The 2-byte characters are used as XObjects, so they
717717
# need extra info in their dictionary
718-
if charname in two_byte_chars:
718+
if charname in multi_byte_chars:
719719
charprocDict['Type'] = Name('XObject')
720720
charprocDict['Subtype'] = Name('Form')
721721
charprocDict['BBox'] = bbox
@@ -726,9 +726,9 @@ def get_char_width(charcode):
726726

727727
# Send the glyphs with ccode > 255 to the XObject dictionary,
728728
# and the others to the font itself
729-
if charname in two_byte_chars:
729+
if charname in multi_byte_chars:
730730
name = self._get_xobject_symbol_name(filename, charname)
731-
self.two_byte_charprocs[name] = charprocObject
731+
self.multi_byte_charprocs[name] = charprocObject
732732
else:
733733
charprocs[charname] = charprocObject
734734

@@ -1297,7 +1297,7 @@ def draw_mathtext(self, gc, x, y, s, prop, angle):
12971297
self.file.output(self.encode_string(unichr(num), fonttype), Op.show)
12981298
self.file.output(Op.end_text)
12991299

1300-
# If using Type 3 fonts, render all of the two-byte characters
1300+
# If using Type 3 fonts, render all of the multi-byte characters
13011301
# as XObjects using the 'Do' command.
13021302
if global_fonttype == 3:
13031303
for ox, oy, fontname, fontsize, num, symbol_name in glyphs:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.