Sorry, I was too hasty. The patch is wrong, here is the real reason: FT2Font.get_charmap() returns a mapping from glyph index to character code. This looks like a very bad design decision to me, because several character codes can correspond to one glyph. For example, in Times New Roman, both 0x32 (space) and 0xA0 (nbsp) are mapped to glyph index 3. Of course, the first one gets lost in get_charmap().
I think, get_charmap should be fixed to return mapping from character codes to glyph indices. Alternatively, get_charmap() could be left as it is, and get_rcharmap() added. I'm willing to implement either one. Which do you prefer ? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel