Could you move this logic into createCmapTable? I don't think there is a reason to attach bmpLen property to the array