Crashalot
Crashalot

Reputation: 34503

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

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.

Upvotes: 1

Views: 603

Answers (0)

Related Questions