summaryrefslogtreecommitdiff
path: root/third_party/freetype-py/freetype/ft_enums/ft_stroker_linecaps.py
blob: 19ebf1df16ea5beb8aa02bcc2c865b76b9ba0f64 (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
#!/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 determine how the end of opened sub-paths are rendered in a
stroke.


FT_STROKER_LINECAP_BUTT

  The end of lines is rendered as a full stop on the last point itself.


FT_STROKER_LINECAP_ROUND

  The end of lines is rendered as a half-circle around the last point.


FT_STROKER_LINECAP_SQUARE

  The end of lines is rendered as a square around the last point.
"""

FT_STROKER_LINECAPS = { 'FT_STROKER_LINECAP_BUTT'   : 0,
                        'FT_STROKER_LINECAP_ROUND'  : 1,
                        'FT_STROKER_LINECAP_SQUARE' : 2}
globals().update(FT_STROKER_LINECAPS)