create a map for the given format and language the macintosh standard character to glyph mapping is supported by format 0 . format 2 supports a mixed 8/16 bit mapping useful for japanese , chinese and korean . format 4 is used for 16 bit mappings . format 6 is used for dense 16 bit mappings . formats 8 , 10 , and 12 properly 8.0 , 10.0 , and 12.0 are used for mixed 16/32-bit and pure 32-bit mappings . this supports text encoded with surrogates in unicode 2.0 and later . reference : http://developer.apple.com/textfonts/ttrefman/rm06/chap6cmap.html concode_field_sep short format concode_elem_sep short language concode_field_sep short getLanguage concode_elem_sep void setData concode_elem_sep short getLength concode_elem_sep short getFormat concode_elem_sep char reverseMap concode_elem_sep String toString concode_elem_sep byte map concode_elem_sep char map concode_elem_sep CMap getMap concode_elem_sep ByteBuffer getData
CMap function ( short arg0 , short arg1 ) { CMap loc0 = null ; switch ( arg0 ) { case 0 : loc0 = new CMapFormat0 ( arg1 ) ; break ; case 4 : loc0 = new CMapFormat4 ( arg1 ) ; break ; case 6 : loc0 = new CMapFormat6 ( arg1 ) ; break ; default : System . out . println ( "srini_string" + arg0 ) ; return null ; } return loc0 ; }