[ot] Implement cmap subtable formats 6 and 10
Minor
[ot] Factor out code between cmap subtable format 6 and 10
[ot] Factor out code between cmap sutable format 12 and 13