Cannot get the kerning of some specific .ttf fonts with freetype
问题 I am trying to extract kerning information out of some .ttf fonts with freetype 2.6 library. This is how I get kerning informations (looping through characters): if( FT_HAS_KERNING(face->getFace()) && previous ){ FT_Vector delta; FT_UInt glyph_index = FT_Get_Char_Index( face->getFace(), character ); FT_UInt prev_index = FT_Get_Char_Index( face->getFace(), previous ); FT_Get_Kerning( face->getFace(), prev_index, glyph_index, FT_KERNING_DEFAULT, &delta ); kerning = delta.x >> 6; } I tried the