46 RetainPtr<CFX_Face> face = m_pFont->GetFace();
47 FT_UInt nIndex = face->GetCharIndex(charcode);
52 while (map_index < face->GetCharMapCount()) {
54 face->GetCharMapEncodingByIndex(map_index++);
55 if (encoding_id_ == encoding_id) {
58 if (!face->SelectCharMap(encoding_id)) {
61 nIndex = face->GetCharIndex(charcode);
63 encoding_id_ = encoding_id;
67 face->SelectCharMap(encoding_id_);