ch=L'领';
//设置编码
FT_Select_Charmap(face, FT_ENCODING_UNICODE);
FT_UInt gindex = FT_Get_Char_Index(face, ch);
std::cout<<"offset:"<<gindex<<std::endl;
if (FT_Load_Glyph(face, gindex, FT_LOAD_NO_BITMAP) == 0){
std::cout<<"ok!"<<std::endl;
}
官方文档 typedef enum FT_Encoding_ { FT_ENC_TAG( FT_ENCODING_NONE, 0, 0, 0, 0 ), FT_ENC_TAG( FT_ENCODING_MS_SYMBOL, 's', 'y', 'm', 'b' ), FT_ENC_TAG( FT_ENCODING_UNICODE, 'u', 'n', 'i', 'c' ), FT_ENC_TAG( FT_ENCODING_SJIS, 's', 'j', 'i', 's' ), FT_ENC_TAG(