Skip to content

Commit

Permalink
Don't cache the charmap and inverse charmap
Browse files Browse the repository at this point in the history
mathtext creates Python dictionaries for the charmap and inverse charmap
for each font.  This turns out to be unnecessary:

1) freetype has an API to do a charmap lookup that is faster than a
Python dictionary

2) The inverse charmap isn't really necessary if we convert the
latex_to_bakoma to use unicode character points rather than glyph
indices.

This should have a large impact when #5241 is merged with larger fonts.
  • Loading branch information
mdboom committed Oct 27, 2015
1 parent e05d646 commit 4f11fb6
Show file tree
Hide file tree
Showing 5 changed files with 312 additions and 311 deletions.

0 comments on commit 4f11fb6

Please sign in to comment.