Revision: 4523
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4523&view=rev
Author:   mdboom
Date:     2007-11-30 07:50:13 -0800 (Fri, 30 Nov 2007)

Log Message:
-----------
Cleanup some variable names.

Modified Paths:
--------------
    branches/transforms/lib/matplotlib/backends/backend_pdf.py

Modified: branches/transforms/lib/matplotlib/backends/backend_pdf.py
===================================================================
--- branches/transforms/lib/matplotlib/backends/backend_pdf.py  2007-11-30 
15:13:44 UTC (rev 4522)
+++ branches/transforms/lib/matplotlib/backends/backend_pdf.py  2007-11-30 
15:50:13 UTC (rev 4523)
@@ -682,12 +682,12 @@
             descriptor['MaxWidth'] = max(widths)
 
             # Make the "Differences" array, sort the ccodes < 255 from
-            # the two-byte ccodes, and build the whole set of glyph ids
+            # the multi-byte ccodes, and build the whole set of glyph ids
             # that we need from this font.
             cmap = font.get_charmap()
             glyph_ids = []
             differences = []
-            two_byte_chars = Set()
+            multi_byte_chars = Set()
             for c in characters:
                 ccode = ord(c)
                 gind = cmap.get(ccode) or 0
@@ -696,7 +696,7 @@
                 if ccode <= 255:
                     differences.append((ccode, glyph_name))
                 else:
-                    two_byte_chars.add(glyph_name)
+                    multi_byte_chars.add(glyph_name)
             differences.sort()
 
             last_c = -2
@@ -715,7 +715,7 @@
                 charprocDict = { 'Length': len(stream) }
                 # The 2-byte characters are used as XObjects, so they
                 # need extra info in their dictionary
-                if charname in two_byte_chars:
+                if charname in multi_byte_chars:
                     charprocDict['Type'] = Name('XObject')
                     charprocDict['Subtype'] = Name('Form')
                     charprocDict['BBox'] = bbox
@@ -726,9 +726,9 @@
 
                 # Send the glyphs with ccode > 255 to the XObject dictionary,
                 # and the others to the font itself
-                if charname in two_byte_chars:
+                if charname in multi_byte_chars:
                     name = self._get_xobject_symbol_name(filename, charname)
-                    self.two_byte_charprocs[name] = charprocObject
+                    self.multi_byte_charprocs[name] = charprocObject
                 else:
                     charprocs[charname] = charprocObject
 
@@ -1297,7 +1297,7 @@
                 self.file.output(self.encode_string(unichr(num), fonttype), 
Op.show)
         self.file.output(Op.end_text)
 
-        # If using Type 3 fonts, render all of the two-byte characters
+        # If using Type 3 fonts, render all of the multi-byte characters
         # as XObjects using the 'Do' command.
         if global_fonttype == 3:
             for ox, oy, fontname, fontsize, num, symbol_name in glyphs:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to