|
From: <md...@us...> - 2008-06-17 14:43:38
|
Revision: 5571
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5571&view=rev
Author: mdboom
Date: 2008-06-17 07:42:31 -0700 (Tue, 17 Jun 2008)
Log Message:
-----------
Final fix to get STIX fonts working on Unicode-narrow platforms.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/mathtext.py
Modified: trunk/matplotlib/lib/matplotlib/mathtext.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/mathtext.py 2008-06-17 14:40:10 UTC (rev 5570)
+++ trunk/matplotlib/lib/matplotlib/mathtext.py 2008-06-17 14:42:31 UTC (rev 5571)
@@ -842,10 +842,11 @@
new_fontname = fontname
if fontname == 'it':
- unistring = unichr(uniindex)
- if (not unicodedata.category(unistring)[0] == "L"
- or unicodedata.name(unistring).startswith("GREEK CAPITAL")):
- new_fontname = 'rm'
+ if uniindex < 0x10000:
+ unistring = unichr(uniindex)
+ if (not unicodedata.category(unistring)[0] == "L"
+ or unicodedata.name(unistring).startswith("GREEK CAPITAL")):
+ new_fontname = 'rm'
slanted = (new_fontname == 'it') or sym in self._slanted_symbols
found_symbol = False
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|