@@ -682,12 +682,12 @@ def get_char_width(charcode):
682
682
descriptor ['MaxWidth' ] = max (widths )
683
683
684
684
# 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
686
686
# that we need from this font.
687
687
cmap = font .get_charmap ()
688
688
glyph_ids = []
689
689
differences = []
690
- two_byte_chars = Set ()
690
+ multi_byte_chars = Set ()
691
691
for c in characters :
692
692
ccode = ord (c )
693
693
gind = cmap .get (ccode ) or 0
@@ -696,7 +696,7 @@ def get_char_width(charcode):
696
696
if ccode <= 255 :
697
697
differences .append ((ccode , glyph_name ))
698
698
else :
699
- two_byte_chars .add (glyph_name )
699
+ multi_byte_chars .add (glyph_name )
700
700
differences .sort ()
701
701
702
702
last_c = - 2
@@ -715,7 +715,7 @@ def get_char_width(charcode):
715
715
charprocDict = { 'Length' : len (stream ) }
716
716
# The 2-byte characters are used as XObjects, so they
717
717
# need extra info in their dictionary
718
- if charname in two_byte_chars :
718
+ if charname in multi_byte_chars :
719
719
charprocDict ['Type' ] = Name ('XObject' )
720
720
charprocDict ['Subtype' ] = Name ('Form' )
721
721
charprocDict ['BBox' ] = bbox
@@ -726,9 +726,9 @@ def get_char_width(charcode):
726
726
727
727
# Send the glyphs with ccode > 255 to the XObject dictionary,
728
728
# and the others to the font itself
729
- if charname in two_byte_chars :
729
+ if charname in multi_byte_chars :
730
730
name = self ._get_xobject_symbol_name (filename , charname )
731
- self .two_byte_charprocs [name ] = charprocObject
731
+ self .multi_byte_charprocs [name ] = charprocObject
732
732
else :
733
733
charprocs [charname ] = charprocObject
734
734
@@ -1297,7 +1297,7 @@ def draw_mathtext(self, gc, x, y, s, prop, angle):
1297
1297
self .file .output (self .encode_string (unichr (num ), fonttype ), Op .show )
1298
1298
self .file .output (Op .end_text )
1299
1299
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
1301
1301
# as XObjects using the 'Do' command.
1302
1302
if global_fonttype == 3 :
1303
1303
for ox , oy , fontname , fontsize , num , symbol_name in glyphs :
0 commit comments