summaryrefslogtreecommitdiff
path: root/third_party/freetype-py/freetype/ft_enums/ft_stroker_borders.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_stroker_borders.py
parent9fc4898c2338e4b9bb028171f5f8492f01879fbe (diff)
Add FreeType python bindings to third_party.
Diffstat (limited to 'third_party/freetype-py/freetype/ft_enums/ft_stroker_borders.py')
-rw-r--r--third_party/freetype-py/freetype/ft_enums/ft_stroker_borders.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/third_party/freetype-py/freetype/ft_enums/ft_stroker_borders.py b/third_party/freetype-py/freetype/ft_enums/ft_stroker_borders.py
new file mode 100644
index 0000000..0c62cd4
--- /dev/null
+++ b/third_party/freetype-py/freetype/ft_enums/ft_stroker_borders.py
@@ -0,0 +1,38 @@
+#!/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.
+#
+# -----------------------------------------------------------------------------
+"""
+These values are used to select a given stroke border in
+FT_Stroker_GetBorderCounts and FT_Stroker_ExportBorder.
+
+
+FT_STROKER_BORDER_LEFT
+
+ Select the left border, relative to the drawing direction.
+
+
+FT_STROKER_BORDER_RIGHT
+
+ Select the right border, relative to the drawing direction.
+
+
+Note
+
+ Applications are generally interested in the 'inside' and 'outside'
+ borders. However, there is no direct mapping between these and the 'left' and
+ 'right' ones, since this really depends on the glyph's drawing orientation,
+ which varies between font formats.
+
+ You can however use FT_Outline_GetInsideBorder and
+ FT_Outline_GetOutsideBorder to get these.
+"""
+FT_STROKER_BORDERS = { 'FT_STROKER_BORDER_LEFT' : 0,
+ 'FT_STROKER_BORDER_RIGHT' : 1}
+globals().update(FT_STROKER_BORDERS)
+
+