Re: [matplotlib-devel] Question about ft2font.get_charmap

2006-11-06 Thread Nicolas Grilly
Hi Paul, On 11/6/06, Paul Barrett <[EMAIL PROTECTED]> wrote: > The ft2font module provides a Python interface to the FT2Font C API. > get_charmap is one of the methods in this API as is set_charmap. A > font can have multiple character maps. Ok. > get_charmap() returns the default one. Others

Re: [matplotlib-devel] Question about ft2font.get_charmap

2006-11-05 Thread Paul Barrett
On 11/5/06, Nicolas Grilly <[EMAIL PROTECTED]> wrote: > In module ft2font, the method FT2Font.get_charmap returns a dict that > maps glyph indices to char codes. > > I don't understand the purpose of this mapping, and why the method > doesn't return the reverse mapping, i.e. char codes mapped to gl

[matplotlib-devel] Question about ft2font.get_charmap

2006-11-05 Thread Nicolas Grilly
In module ft2font, the method FT2Font.get_charmap returns a dict that maps glyph indices to char codes. I don't understand the purpose of this mapping, and why the method doesn't return the reverse mapping, i.e. char codes mapped to glyph indices. For example, in backend_ps.py, line 754, the char