OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* ftstroke.h */ | 3 /* ftstroke.h */ |
4 /* */ | 4 /* */ |
5 /* FreeType path stroker (specification). */ | 5 /* FreeType path stroker (specification). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2002-2006, 2008, 2009, 2011 by */ | 7 /* Copyright 2002-2006, 2008, 2009, 2011 by */ |
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 /* */ | 9 /* */ |
10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 * Used to render beveled line joins. The outer corner of | 78 * Used to render beveled line joins. The outer corner of |
79 * the joined lines is filled by enclosing the triangular | 79 * the joined lines is filled by enclosing the triangular |
80 * region of the corner with a straight line between the | 80 * region of the corner with a straight line between the |
81 * outer corners of each stroke. | 81 * outer corners of each stroke. |
82 * | 82 * |
83 * FT_STROKER_LINEJOIN_MITER_FIXED :: | 83 * FT_STROKER_LINEJOIN_MITER_FIXED :: |
84 * Used to render mitered line joins, with fixed bevels if the | 84 * Used to render mitered line joins, with fixed bevels if the |
85 * miter limit is exceeded. The outer edges of the strokes | 85 * miter limit is exceeded. The outer edges of the strokes |
86 * for the two segments are extended until they meet at an | 86 * for the two segments are extended until they meet at an |
87 * angle. If the segments meet at too sharp an angle (such | 87 * angle. If the segments meet at too sharp an angle (such |
88 * that the miter would extend from the intersection of the | 88 * that the miter would extend from the intersection of the |
89 * segments a distance greater than the product of the miter | 89 * segments a distance greater than the product of the miter |
90 * limit value and the border radius), then a bevel join (see | 90 * limit value and the border radius), then a bevel join (see |
91 * above) is used instead. This prevents long spikes being | 91 * above) is used instead. This prevents long spikes being |
92 * created. FT_STROKER_LINEJOIN_MITER_FIXED generates a miter | 92 * created. FT_STROKER_LINEJOIN_MITER_FIXED generates a miter |
93 * line join as used in PostScript and PDF. | 93 * line join as used in PostScript and PDF. |
94 * | 94 * |
95 * FT_STROKER_LINEJOIN_MITER_VARIABLE :: | 95 * FT_STROKER_LINEJOIN_MITER_VARIABLE :: |
96 * FT_STROKER_LINEJOIN_MITER :: | 96 * FT_STROKER_LINEJOIN_MITER :: |
97 * Used to render mitered line joins, with variable bevels if | 97 * Used to render mitered line joins, with variable bevels if |
98 * the miter limit is exceeded. The intersection of the | 98 * the miter limit is exceeded. The intersection of the |
99 * strokes is clipped at a line perpendicular to the bisector | 99 * strokes is clipped at a line perpendicular to the bisector |
100 * of the angle between the strokes, at the distance from the | 100 * of the angle between the strokes, at the distance from the |
101 * intersection of the segments equal to the product of the | 101 * intersection of the segments equal to the product of the |
102 * miter limit value and the border radius. This prevents | 102 * miter limit value and the border radius. This prevents |
103 * long spikes being created. | 103 * long spikes being created. |
104 * FT_STROKER_LINEJOIN_MITER_VARIABLE generates a mitered line | 104 * FT_STROKER_LINEJOIN_MITER_VARIABLE generates a mitered line |
105 * join as used in XPS. FT_STROKER_LINEJOIN_MITER is an alias | 105 * join as used in XPS. FT_STROKER_LINEJOIN_MITER is an alias |
106 * for FT_STROKER_LINEJOIN_MITER_VARIABLE, retained for | 106 * for FT_STROKER_LINEJOIN_MITER_VARIABLE, retained for |
107 * backwards compatibility. | 107 * backwards compatibility. |
108 */ | 108 */ |
109 typedef enum FT_Stroker_LineJoin_ | 109 typedef enum FT_Stroker_LineJoin_ |
110 { | 110 { |
111 FT_STROKER_LINEJOIN_ROUND = 0, | 111 FT_STROKER_LINEJOIN_ROUND = 0, |
112 FT_STROKER_LINEJOIN_BEVEL = 1, | 112 FT_STROKER_LINEJOIN_BEVEL = 1, |
113 FT_STROKER_LINEJOIN_MITER_VARIABLE = 2, | 113 FT_STROKER_LINEJOIN_MITER_VARIABLE = 2, |
114 FT_STROKER_LINEJOIN_MITER = FT_STROKER_LINEJOIN_MITER_VARIABLE, | 114 FT_STROKER_LINEJOIN_MITER = FT_STROKER_LINEJOIN_MITER_VARIABLE, |
115 FT_STROKER_LINEJOIN_MITER_FIXED = 3 | 115 FT_STROKER_LINEJOIN_MITER_FIXED = 3 |
116 | 116 |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 | 732 |
733 #endif /* __FT_STROKE_H__ */ | 733 #endif /* __FT_STROKE_H__ */ |
734 | 734 |
735 | 735 |
736 /* END */ | 736 /* END */ |
737 | 737 |
738 | 738 |
739 /* Local Variables: */ | 739 /* Local Variables: */ |
740 /* coding: utf-8 */ | 740 /* coding: utf-8 */ |
741 /* End: */ | 741 /* End: */ |
OLD | NEW |