summaryrefslogtreecommitdiff
path: root/third_party/freetype-py/freetype/ft_enums/ft_stroker_borders.py
blob: 0c62cd4e07329823bffd034a94d654763d7e16ef (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
32
33
34
35
36
37
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)