From 36623f13d922461c897fe0ae1ff550a073385329 Mon Sep 17 00:00:00 2001 From: Roozbeh Pournader Date: Tue, 13 Jan 2015 08:50:27 -0800 Subject: Add FreeType python bindings to third_party. --- .../freetype/ft_enums/ft_kerning_modes.py | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 third_party/freetype-py/freetype/ft_enums/ft_kerning_modes.py (limited to 'third_party/freetype-py/freetype/ft_enums/ft_kerning_modes.py') 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) -- cgit v1.2.3