freetypy.Face.get_track_kerning

Face.get_track_kerning()

Return the track kerning for a given face object at a given size.

Parameters:

point_size : float

The point size in fractional points.

degree : int

The degree of tightness. Increasingly negative values represent tighter track kerning, while increasingly positive values represent looser track kerning. Value zero means no track kerning.

Returns:

kerning : float

The track kerning between the glyphs.

Notes

Currently, only the Type 1 font driver supports track kerning, using data from AFM files (if attached with attach).

Only very few AFM files come with track kerning data; please refer to the Adobe’s AFM specification for more details.