raphlinus / font-rs

Apache License 2.0
755 stars 49 forks source link

Implement conversion of code point to glyph ID #25

Closed rtsuk closed 6 years ago

rtsuk commented 6 years ago

Continuation of pull #24, but here because I screwed up the rebase.

One thing I don't like about my approach is storing the index of the format 4 encoding table and looking it up every time, but trying to store a reference to the table in the font struct ran afoul of lifetime issues that I don't yet completely grok.