From: Nicolas G. <nic...@ga...> - 2006-11-05 19:04:22
|
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 charmap is immediately reversed, just after being loaded: cmap = font.get_charmap() glyphd = reverse_dict(cmap) Thanks, Nicolas Grilly |