You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try nuking your fontcache. My knee-jerk reaction is that this is related to the unicode bug that showed up on osx which lead to finding rcparams.update was not validating. If you have not regenerated your font cache sense then you may have a mix of encodings in there.
The issue is very similar to the issue that #3671 fixes. The problem is that the string returned as typeface is not a valid unicode string for the Arial font that Seaborn uses. The issue in #3671 was with CharacterComplement which is a part of the PCLT table too. The only reason Seaborn is involved is because it changes the default font.
The strange thing here is that according to the MS docs here http://www.microsoft.com/typography/otspec/pclt.htm typeFace should be an ASCII string so it should be safe to cast it directly to unicode. @mdboom do you have any idea if that could sometime not be the case?
A simple fix would be to turn typeFace into a byte string but I am not sure it is right.
BTW: I think this is a stock Apple or perhaps MS office font file.
Activity
jenshnielsen commentedon Nov 26, 2014
From the traceback I guess it relates to the typesetting of exponents with mathtext which is somehow different with seaborn
tacaswell commentedon Nov 26, 2014
Try nuking your fontcache. My knee-jerk reaction is that this is related to the unicode bug that showed up on osx which lead to finding rcparams.update was not validating. If you have not regenerated your font cache sense then you may have a mix of encodings in there.
Also, that is an impressive trace-back.
jenshnielsen commentedon Nov 26, 2014
Thanks, I think I tried that already but I will investigate further.
Yest is is a crazily long traceback. It nearly killed the IPython Notebook when I first ran the code.
tacaswell commentedon Nov 26, 2014
attn @mwaskom Did anything with fonts change on master recently?
jenshnielsen commentedon Nov 26, 2014
My guess is that it is somehow related to #3671 thou that should be fixed.
mwaskom commentedon Nov 26, 2014
Nope, don't think I've touched any font stuff since 0.4 or so.
jenshnielsen commentedon Nov 26, 2014
The issue is very similar to the issue that #3671 fixes. The problem is that the string returned as typeface is not a valid unicode string for the Arial font that Seaborn uses. The issue in #3671 was with CharacterComplement which is a part of the PCLT table too. The only reason Seaborn is involved is because it changes the default font.
The strange thing here is that according to the MS docs here http://www.microsoft.com/typography/otspec/pclt.htm typeFace should be an ASCII string so it should be safe to cast it directly to unicode. @mdboom do you have any idea if that could sometime not be the case?
A simple fix would be to turn typeFace into a byte string but I am not sure it is right.
BTW: I think this is a stock Apple or perhaps MS office font file.