Finishing my study of FreeType's Apple SFNT support there's a binary-parser for character-maps, validated against a selection of formats via a callback array.
The bulk of this file defines various implementations of FreeType's CMap class for each supported format it validates. Some of which requires support routines, mostly subparsers & (typically binary-search) lookups. Not to mention UTF8 iterators.
1/1 Fin on SFNT. Tomorrow: publish.