| 251 | } |
| 252 | |
| 253 | bool getKerning(double &output, FontHandle *font, GlyphIndex glyphIndex0, GlyphIndex glyphIndex1, FontCoordinateScaling coordinateScaling) { |
| 254 | FT_Vector kerning; |
| 255 | if (FT_Get_Kerning(font->face, glyphIndex0.getIndex(), glyphIndex1.getIndex(), FT_KERNING_UNSCALED, &kerning)) { |
| 256 | output = 0; |
| 257 | return false; |
| 258 | } |
| 259 | output = getFontCoordinateScale(font->face, coordinateScaling)*kerning.x; |
| 260 | return true; |
| 261 | } |
| 262 | |
| 263 | bool getKerning(double &output, FontHandle *font, unicode_t unicode0, unicode_t unicode1, FontCoordinateScaling coordinateScaling) { |
| 264 | return getKerning(output, font, GlyphIndex(FT_Get_Char_Index(font->face, unicode0)), GlyphIndex(FT_Get_Char_Index(font->face, unicode1)), coordinateScaling); |
nothing calls this directly
no test coverage detected