summaryrefslogtreecommitdiff
path: root/third_party/freetype-py/doc/ft_outline_flags.rst
blob: 5bbc684b0fe5e3a4fa276849e40f83397946e241 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FT_OUTLINE_FLAGS
================

A list of bit-field constants use for the flags in an outline's 'flags'
field.


.. data:: FT_OUTLINE_NONE	

  Value 0 is reserved.


.. data:: FT_OUTLINE_OWNER	

  If set, this flag indicates that the outline's field arrays (i.e., 'points',
  'flags', and 'contours') are 'owned' by the outline object, and should thus
  be freed when it is destroyed.


.. data:: FT_OUTLINE_EVEN_ODD_FILL

  By default, outlines are filled using the non-zero winding rule. If set to 1,
  the outline will be filled using the even-odd fill rule (only works with the
  smooth rasterizer).


.. data:: FT_OUTLINE_REVERSE_FILL

  By default, outside contours of an outline are oriented in clock-wise
  direction, as defined in the TrueType specification. This flag is set if the
  outline uses the opposite direction (typically for Type 1 fonts). This flag
  is ignored by the scan converter.


.. data:: FT_OUTLINE_IGNORE_DROPOUTS

  By default, the scan converter will try to detect drop-outs in an outline and
  correct the glyph bitmap to ensure consistent shape continuity. If set, this
  flag hints the scan-line converter to ignore such cases. See below for more
  information.


.. data:: FT_OUTLINE_SMART_DROPOUTS

  Select smart dropout control. If unset, use simple dropout control. Ignored
  if FT_OUTLINE_IGNORE_DROPOUTS is set. See below for more information.


.. data:: FT_OUTLINE_INCLUDE_STUBS

  If set, turn pixels on for 'stubs', otherwise exclude them. Ignored if
  FT_OUTLINE_IGNORE_DROPOUTS is set. See below for more information.


.. data:: FT_OUTLINE_HIGH_PRECISION
 
  This flag indicates that the scan-line converter should try to convert this
  outline to bitmaps with the highest possible quality. It is typically set for
  small character sizes. Note that this is only a hint that might be completely
  ignored by a given scan-converter.


.. data:: FT_OUTLINE_SINGLE_PASS	

  This flag is set to force a given scan-converter to only use a single pass
  over the outline to render a bitmap glyph image. Normally, it is set for very
  large character sizes. It is only a hint that might be completely ignored by
  a given scan-converter.