Clean codes
Optimize drawing invisibles

glyphAtIndex:isValidIndex: is more efficent thant normal glyphAtIndex: