summaryrefslogtreecommitdiff
path: root/third_party/freetype-py/freetype/ft_enums/ft_kerning_modes.py
blob: 86341dc5b804003dd1f10ff0c47da8217a9924cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
#
#  FreeType high-level python API - Copyright 2011-2012 Nicolas P. Rougier
#  Distributed under the terms of the new BSD license.
#
# -----------------------------------------------------------------------------
"""
An enumeration used to specify which kerning values to return in
FT_Get_Kerning.


FT_KERNING_DEFAULT	

  Return scaled and grid-fitted kerning distances (value is 0).


FT_KERNING_UNFITTED	

  Return scaled but un-grid-fitted kerning distances.


FT_KERNING_UNSCALED	

  Return the kerning vector in original font units.
"""
FT_KERNING_MODES = { 'FT_KERNING_DEFAULT'  : 0,
                     'FT_KERNING_UNFITTED' : 1,
                     'FT_KERNING_UNSCALED' : 2 }
globals().update(FT_KERNING_MODES)