freetypy.Face.get_kerning

Face.get_kerning()

Return the kerning vector between two glyphs of a same face.

Parameters:

left_glyph : int

The index of the left glyph in the kern pair.

right_glyph : int

The index of the right glyph in the kern pair.

kern_mode : int, optional

A KERNING mode.

Returns:

vector : Vector

The kerning between the two glyphs.

Notes

Only horizontal layouts (left-to-right & right-to-left) are supported by this method. Other layouts, or more sophisticated kernings, are out of the scope of this API function – they can be implemented through format-specific interfaces.