summaryrefslogtreecommitdiff
path: root/third_party/freetype-py/freetype/ft_enums/ft_kerning_modes.py
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2015-01-13 08:50:27 -0800
committerJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 12:16:25 -0700
commit36623f13d922461c897fe0ae1ff550a073385329 (patch)
tree9339ab434222da3393491673ea12090de381495b /third_party/freetype-py/freetype/ft_enums/ft_kerning_modes.py
parent9fc4898c2338e4b9bb028171f5f8492f01879fbe (diff)
Add FreeType python bindings to third_party.
Diffstat (limited to 'third_party/freetype-py/freetype/ft_enums/ft_kerning_modes.py')
-rw-r--r--third_party/freetype-py/freetype/ft_enums/ft_kerning_modes.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/third_party/freetype-py/freetype/ft_enums/ft_kerning_modes.py b/third_party/freetype-py/freetype/ft_enums/ft_kerning_modes.py
new file mode 100644
index 0000000..86341dc
--- /dev/null
+++ b/third_party/freetype-py/freetype/ft_enums/ft_kerning_modes.py
@@ -0,0 +1,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)