Jouni Seppänen <[email protected]> writes:
>In the meantime, I will commit a quick workaround that just disables
>the fonts we can't handle instead of aborting with an assert.
Now committed in revision 8955 (1.0 maintenance branch) and 8956
(svn trunk). Please test on your system.
Index: lib/matplotlib/dviread.py
===================================================================
--- lib/matplotlib/dviread.py (revision 8954)
+++ lib/matplotlib/dviread.py (revision 8955)
@@ -714,22 +714,30 @@
subsetting, but I have no example of << in my TeX installation.
"""
texname, psname = words[:2]
- effects, encoding, filename = '', None, None
+ effects, encodings, filename = '', [], None
for word in words[2:]:
if not word.startswith('<'):
effects = word
else:
word = word.lstrip('<')
if word.startswith('['):
- assert encoding is None
- encoding = word[1:]
+ encodings.append(word[1:])
elif word.endswith('.enc'):
- assert encoding is None
- encoding = word
+ encodings.append(word)
else:
assert filename is None
filename = word
+ if len(encodings) > 1:
+ # TODO this is a stopgap workaround, need to handle this correctly
+ matplotlib.verbose.report('Multiple encodings for %s = %s, skipping'
+ % (texname, psname), 'debug')
+ return
+ elif len(encodings) == 1:
+ encoding, = encodings
+ else:
+ encoding = None
+
eff = effects.split()
effects = {}
try:
--
Jouni K. Seppänen
http://www.iki.fi/jks
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users