Swift: get Unicode code points for glyphs of TTF font file?

516 Views Asked by At

Using Swift, is it possible to get the Unicode code points for the glyphs in a True Type Font (TTF) file?

The CGFont doesn't seem to include a reference to the cmap table required to map Unicode code points to glyphs.

The CTGlyphInfo class is close, but it doesn't provide the inverse, that is the Unicode code point for a given glyph.

0

There are 0 best solutions below