private boolean fixCMapTable (TrueTypeFont ttf, CmapTable cmap) {
CMapFormat4 fourMap = null;
CMapFormat0 zeroMap = null;
for (int i = 0; i < mapIDs.length; i += 2) {
CMap map = this.cmapTable.getCMap (mapIDs[i], mapIDs[i + 1]);
if (map != null) {
if (fourMap == null && map instanceof CMapFormat4) {
fourMap = (CMapFormat4) map;
} else if (zeroMap == null && map instanceof CMapFormat0) {
zeroMap = (CMapFormat0) map;