PageRenderTime 74ms CodeModel.GetById 9ms app.highlight 53ms RepoModel.GetById 1ms app.codeStats 1ms

/modules/freetype2/docs/reference/ft2-outline_processing.html

http://github.com/zpao/v8monkey
HTML | 1119 lines | 1026 code | 93 blank | 0 comment | 0 complexity | 14dd7bfd0064b53b0ef2d22bd34dfdfc MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  2"http://www.w3.org/TR/html4/loose.dtd">
  3<html>
  4<head>
  5<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6<title>FreeType-2.4.3 API Reference</title>
  7<style type="text/css">
  8  body { font-family: Verdana, Geneva, Arial, Helvetica, serif;
  9         color: #000000;
 10         background: #FFFFFF; }
 11
 12  p { text-align: justify; }
 13  h1 { text-align: center; }
 14  li { text-align: justify; }
 15  td { padding: 0 0.5em 0 0.5em; }
 16  td.left { padding: 0 0.5em 0 0.5em;
 17            text-align: left; }
 18
 19  a:link { color: #0000EF; }
 20  a:visited { color: #51188E; }
 21  a:hover { color: #FF0000; }
 22
 23  span.keyword { font-family: monospace;
 24                 text-align: left;
 25                 white-space: pre;
 26                 color: darkblue; }
 27
 28  pre.colored { color: blue; }
 29
 30  ul.empty { list-style-type: none; }
 31</style>
 32</head>
 33<body>
 34
 35<table align=center><tr><td><font size=-1>[<a href="ft2-index.html">Index</a>]</font></td>
 36<td width="100%"></td>
 37<td><font size=-1>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
 38<center><h1>FreeType-2.4.3 API Reference</h1></center>
 39
 40<center><h1>
 41Outline Processing
 42</h1></center>
 43<h2>Synopsis</h2>
 44<table align=center cellspacing=5 cellpadding=0 border=0>
 45<tr><td></td><td><a href="#FT_Outline">FT_Outline</a></td><td></td><td><a href="#FT_Outline_MoveToFunc">FT_Outline_MoveToFunc</a></td></tr>
 46<tr><td></td><td><a href="#FT_OUTLINE_FLAGS">FT_OUTLINE_FLAGS</a></td><td></td><td><a href="#FT_Outline_LineToFunc">FT_Outline_LineToFunc</a></td></tr>
 47<tr><td></td><td><a href="#FT_Outline_New">FT_Outline_New</a></td><td></td><td><a href="#FT_Outline_ConicToFunc">FT_Outline_ConicToFunc</a></td></tr>
 48<tr><td></td><td><a href="#FT_Outline_Done">FT_Outline_Done</a></td><td></td><td><a href="#FT_Outline_CubicToFunc">FT_Outline_CubicToFunc</a></td></tr>
 49<tr><td></td><td><a href="#FT_Outline_Copy">FT_Outline_Copy</a></td><td></td><td><a href="#FT_Outline_Funcs">FT_Outline_Funcs</a></td></tr>
 50<tr><td></td><td><a href="#FT_Outline_Translate">FT_Outline_Translate</a></td><td></td><td><a href="#FT_Outline_Decompose">FT_Outline_Decompose</a></td></tr>
 51<tr><td></td><td><a href="#FT_Outline_Transform">FT_Outline_Transform</a></td><td></td><td><a href="#FT_Outline_Get_CBox">FT_Outline_Get_CBox</a></td></tr>
 52<tr><td></td><td><a href="#FT_Outline_Embolden">FT_Outline_Embolden</a></td><td></td><td><a href="#FT_Outline_Get_Bitmap">FT_Outline_Get_Bitmap</a></td></tr>
 53<tr><td></td><td><a href="#FT_Outline_Reverse">FT_Outline_Reverse</a></td><td></td><td><a href="#FT_Outline_Render">FT_Outline_Render</a></td></tr>
 54<tr><td></td><td><a href="#FT_Outline_Check">FT_Outline_Check</a></td><td></td><td><a href="#FT_Orientation">FT_Orientation</a></td></tr>
 55<tr><td></td><td><a href="#FT_Outline_Get_BBox">FT_Outline_Get_BBox</a></td><td></td><td><a href="#FT_Outline_Get_Orientation">FT_Outline_Get_Orientation</a></td></tr>
 56<tr><td></td><td><a href="#ft_outline_flags">ft_outline_flags</a></td><td></td><td></td></tr>
 57</table><br><br>
 58
 59<table align=center width="87%"><tr><td>
 60<p>This section contains routines used to create and destroy scalable glyph images known as &lsquo;outlines&rsquo;. These can also be measured, transformed, and converted into bitmaps and pixmaps.</p>
 61</td></tr></table><br>
 62<table align=center width="75%"><tr><td>
 63<h4><a name="FT_Outline">FT_Outline</a></h4>
 64<table align=center width="87%"><tr><td>
 65Defined in FT_IMAGE_H (freetype/ftimage.h).
 66</td></tr></table><br>
 67<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
 68
 69  <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Outline_
 70  {
 71    <span class="keyword">short</span>       n_contours;      /* number of contours in glyph        */
 72    <span class="keyword">short</span>       n_points;        /* number of points in the glyph      */
 73
 74    <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  points;          /* the outline's points               */
 75    <span class="keyword">char</span>*       tags;            /* the points flags                   */
 76    <span class="keyword">short</span>*      contours;        /* the contour end points             */
 77
 78    <span class="keyword">int</span>         flags;           /* outline masks                      */
 79
 80  } <b>FT_Outline</b>;
 81
 82  /* Following limits must be consistent with */
 83  /* <b>FT_Outline</b>.{n_contours,n_points}         */
 84#define FT_OUTLINE_CONTOURS_MAX  SHRT_MAX
 85#define FT_OUTLINE_POINTS_MAX    SHRT_MAX
 86
 87</pre></table><br>
 88<table align=center width="87%"><tr><td>
 89<p>This structure is used to describe an outline to the scan-line converter.</p>
 90</td></tr></table><br>
 91<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
 92<p></p>
 93<table cellpadding=3 border=0>
 94<tr valign=top><td><b>n_contours</b></td><td>
 95<p>The number of contours in the outline.</p>
 96</td></tr>
 97<tr valign=top><td><b>n_points</b></td><td>
 98<p>The number of points in the outline.</p>
 99</td></tr>
100<tr valign=top><td><b>points</b></td><td>
101<p>A pointer to an array of &lsquo;n_points&rsquo; <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a> elements, giving the outline's point coordinates.</p>
102</td></tr>
103<tr valign=top><td><b>tags</b></td><td>
104<p>A pointer to an array of &lsquo;n_points&rsquo; chars, giving each outline point's type.</p>
105<p>If bit&nbsp;0 is unset, the point is &lsquo;off&rsquo; the curve, i.e., a Bézier control point, while it is &lsquo;on&rsquo; if set.</p>
106<p>Bit&nbsp;1 is meaningful for &lsquo;off&rsquo; points only. If set, it indicates a third-order Bézier arc control point; and a second-order control point if unset.</p>
107<p>If bit&nbsp;2 is set, bits 5-7 contain the drop-out mode (as defined in the OpenType specification; the value is the same as the argument to the SCANMODE instruction).</p>
108<p>Bits 3 and&nbsp;4 are reserved for internal purposes.</p>
109</td></tr>
110<tr valign=top><td><b>contours</b></td><td>
111<p>An array of &lsquo;n_contours&rsquo; shorts, giving the end point of each contour within the outline. For example, the first contour is defined by the points &lsquo;0&rsquo; to &lsquo;contours[0]&rsquo;, the second one is defined by the points &lsquo;contours[0]+1&rsquo; to &lsquo;contours[1]&rsquo;, etc.</p>
112</td></tr>
113<tr valign=top><td><b>flags</b></td><td>
114<p>A set of bit flags used to characterize the outline and give hints to the scan-converter and hinter on how to convert/grid-fit it. See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_FLAGS</a>.</p>
115</td></tr>
116</table>
117</td></tr></table>
118<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
119<p>The B/W rasterizer only checks bit&nbsp;2 in the &lsquo;tags&rsquo; array for the first point of each contour. The drop-out mode as given with <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_IGNORE_DROPOUTS</a>, <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_SMART_DROPOUTS</a>, and <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_INCLUDE_STUBS</a> in &lsquo;flags&rsquo; is then overridden.</p>
120</td></tr></table>
121</td></tr></table>
122<hr width="75%">
123<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
124<td width="100%"></td>
125<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
126
127<table align=center width="75%"><tr><td>
128<h4><a name="FT_OUTLINE_FLAGS">FT_OUTLINE_FLAGS</a></h4>
129<table align=center width="87%"><tr><td>
130Defined in FT_IMAGE_H (freetype/ftimage.h).
131</td></tr></table><br>
132<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
133
134#define <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_NONE</a>             0x0
135#define <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_OWNER</a>            0x1
136#define <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_EVEN_ODD_FILL</a>    0x2
137#define <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_REVERSE_FILL</a>     0x4
138#define <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_IGNORE_DROPOUTS</a>  0x8
139#define <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_SMART_DROPOUTS</a>   0x10
140#define <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_INCLUDE_STUBS</a>    0x20
141
142#define <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_HIGH_PRECISION</a>   0x100
143#define <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_SINGLE_PASS</a>      0x200
144
145</pre></table><br>
146<table align=center width="87%"><tr><td>
147<p>A list of bit-field constants use for the flags in an outline's &lsquo;flags&rsquo; field.</p>
148</td></tr></table><br>
149<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
150<p></p>
151<table cellpadding=3 border=0>
152<tr valign=top><td><b>FT_OUTLINE_NONE</b></td><td>
153<p>Value&nbsp;0 is reserved.</p>
154</td></tr>
155<tr valign=top><td><b>FT_OUTLINE_OWNER</b></td><td>
156<p>If set, this flag indicates that the outline's field arrays (i.e., &lsquo;points&rsquo;, &lsquo;flags&rsquo;, and &lsquo;contours&rsquo;) are &lsquo;owned&rsquo; by the outline object, and should thus be freed when it is destroyed.</p>
157</td></tr>
158<tr valign=top><td colspan=0><b>FT_OUTLINE_EVEN_ODD_FILL</b></td></tr>
159<tr valign=top><td></td><td>
160<p>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).</p>
161</td></tr>
162<tr valign=top><td colspan=0><b>FT_OUTLINE_REVERSE_FILL</b></td></tr>
163<tr valign=top><td></td><td>
164<p>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&nbsp;1 fonts). This flag is ignored by the scan converter.</p>
165</td></tr>
166<tr valign=top><td colspan=0><b>FT_OUTLINE_IGNORE_DROPOUTS</b></td></tr>
167<tr valign=top><td></td><td>
168<p>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.</p>
169</td></tr>
170<tr valign=top><td colspan=0><b>FT_OUTLINE_SMART_DROPOUTS</b></td></tr>
171<tr valign=top><td></td><td>
172<p>Select smart dropout control. If unset, use simple dropout control. Ignored if <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_IGNORE_DROPOUTS</a> is set. See below for more information.</p>
173</td></tr>
174<tr valign=top><td colspan=0><b>FT_OUTLINE_INCLUDE_STUBS</b></td></tr>
175<tr valign=top><td></td><td>
176<p>If set, turn pixels on for &lsquo;stubs&rsquo;, otherwise exclude them. Ignored if <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_IGNORE_DROPOUTS</a> is set. See below for more information.</p>
177</td></tr>
178<tr valign=top><td colspan=0><b>FT_OUTLINE_HIGH_PRECISION</b></td></tr>
179<tr valign=top><td></td><td>
180<p>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.</p>
181</td></tr>
182<tr valign=top><td><b>FT_OUTLINE_SINGLE_PASS</b></td><td>
183<p>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.</p>
184</td></tr>
185</table>
186</td></tr></table>
187<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
188<p>The flags <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_IGNORE_DROPOUTS</a>, <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_SMART_DROPOUTS</a>, and <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_INCLUDE_STUBS</a> are ignored by the smooth rasterizer.</p>
189<p>There exists a second mechanism to pass the drop-out mode to the B/W rasterizer; see the &lsquo;tags&rsquo; field in <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>.</p>
190<p>Please refer to the description of the &lsquo;SCANTYPE&rsquo; instruction in the OpenType specification (in file &lsquo;ttinst1.doc&rsquo;) how simple drop-outs, smart drop-outs, and stubs are defined.</p>
191</td></tr></table>
192</td></tr></table>
193<hr width="75%">
194<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
195<td width="100%"></td>
196<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
197
198<table align=center width="75%"><tr><td>
199<h4><a name="FT_Outline_New">FT_Outline_New</a></h4>
200<table align=center width="87%"><tr><td>
201Defined in FT_OUTLINE_H (freetype/ftoutln.h).
202</td></tr></table><br>
203<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
204
205  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
206  <b>FT_Outline_New</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>   library,
207                  <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>      numPoints,
208                  <a href="ft2-basic_types.html#FT_Int">FT_Int</a>       numContours,
209                  <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>  *anoutline );
210
211
212  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
213  FT_Outline_New_Internal( <a href="ft2-system_interface.html#FT_Memory">FT_Memory</a>    memory,
214                           <a href="ft2-basic_types.html#FT_UInt">FT_UInt</a>      numPoints,
215                           <a href="ft2-basic_types.html#FT_Int">FT_Int</a>       numContours,
216                           <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>  *anoutline );
217
218</pre></table><br>
219<table align=center width="87%"><tr><td>
220<p>Create a new outline of a given size.</p>
221</td></tr></table><br>
222<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
223<p></p>
224<table cellpadding=3 border=0>
225<tr valign=top><td><b>library</b></td><td>
226<p>A handle to the library object from where the outline is allocated. Note however that the new outline will <b>not</b> necessarily be <b>freed</b>, when destroying the library, by <a href="ft2-base_interface.html#FT_Done_FreeType">FT_Done_FreeType</a>.</p>
227</td></tr>
228<tr valign=top><td><b>numPoints</b></td><td>
229<p>The maximal number of points within the outline.</p>
230</td></tr>
231<tr valign=top><td><b>numContours</b></td><td>
232<p>The maximal number of contours within the outline.</p>
233</td></tr>
234</table>
235</td></tr></table>
236<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
237<p></p>
238<table cellpadding=3 border=0>
239<tr valign=top><td><b>anoutline</b></td><td>
240<p>A handle to the new outline.</p>
241</td></tr>
242</table>
243</td></tr></table>
244<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
245<p>FreeType error code. 0&nbsp;means success.</p>
246</td></tr></table>
247<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
248<p>The reason why this function takes a &lsquo;library&rsquo; parameter is simply to use the library's memory allocator.</p>
249</td></tr></table>
250</td></tr></table>
251<hr width="75%">
252<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
253<td width="100%"></td>
254<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
255
256<table align=center width="75%"><tr><td>
257<h4><a name="FT_Outline_Done">FT_Outline_Done</a></h4>
258<table align=center width="87%"><tr><td>
259Defined in FT_OUTLINE_H (freetype/ftoutln.h).
260</td></tr></table><br>
261<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
262
263  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
264  <b>FT_Outline_Done</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>   library,
265                   <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline );
266
267
268  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
269  FT_Outline_Done_Internal( <a href="ft2-system_interface.html#FT_Memory">FT_Memory</a>    memory,
270                            <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline );
271
272</pre></table><br>
273<table align=center width="87%"><tr><td>
274<p>Destroy an outline created with <a href="ft2-outline_processing.html#FT_Outline_New">FT_Outline_New</a>.</p>
275</td></tr></table><br>
276<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
277<p></p>
278<table cellpadding=3 border=0>
279<tr valign=top><td><b>library</b></td><td>
280<p>A handle of the library object used to allocate the outline.</p>
281</td></tr>
282<tr valign=top><td><b>outline</b></td><td>
283<p>A pointer to the outline object to be discarded.</p>
284</td></tr>
285</table>
286</td></tr></table>
287<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
288<p>FreeType error code. 0&nbsp;means success.</p>
289</td></tr></table>
290<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
291<p>If the outline's &lsquo;owner&rsquo; field is not set, only the outline descriptor will be released.</p>
292<p>The reason why this function takes an &lsquo;library&rsquo; parameter is simply to use ft_mem_free().</p>
293</td></tr></table>
294</td></tr></table>
295<hr width="75%">
296<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
297<td width="100%"></td>
298<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
299
300<table align=center width="75%"><tr><td>
301<h4><a name="FT_Outline_Copy">FT_Outline_Copy</a></h4>
302<table align=center width="87%"><tr><td>
303Defined in FT_OUTLINE_H (freetype/ftoutln.h).
304</td></tr></table><br>
305<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
306
307  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
308  <b>FT_Outline_Copy</b>( <span class="keyword">const</span> <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  source,
309                   <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>        *target );
310
311</pre></table><br>
312<table align=center width="87%"><tr><td>
313<p>Copy an outline into another one. Both objects must have the same sizes (number of points &amp; number of contours) when this function is called.</p>
314</td></tr></table><br>
315<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
316<p></p>
317<table cellpadding=3 border=0>
318<tr valign=top><td><b>source</b></td><td>
319<p>A handle to the source outline.</p>
320</td></tr>
321</table>
322</td></tr></table>
323<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
324<p></p>
325<table cellpadding=3 border=0>
326<tr valign=top><td><b>target</b></td><td>
327<p>A handle to the target outline.</p>
328</td></tr>
329</table>
330</td></tr></table>
331<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
332<p>FreeType error code. 0&nbsp;means success.</p>
333</td></tr></table>
334</td></tr></table>
335<hr width="75%">
336<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
337<td width="100%"></td>
338<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
339
340<table align=center width="75%"><tr><td>
341<h4><a name="FT_Outline_Translate">FT_Outline_Translate</a></h4>
342<table align=center width="87%"><tr><td>
343Defined in FT_OUTLINE_H (freetype/ftoutln.h).
344</td></tr></table><br>
345<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
346
347  FT_EXPORT( <span class="keyword">void</span> )
348  <b>FT_Outline_Translate</b>( <span class="keyword">const</span> <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline,
349                        <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>             xOffset,
350                        <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>             yOffset );
351
352</pre></table><br>
353<table align=center width="87%"><tr><td>
354<p>Apply a simple translation to the points of an outline.</p>
355</td></tr></table><br>
356<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
357<p></p>
358<table cellpadding=3 border=0>
359<tr valign=top><td><b>outline</b></td><td>
360<p>A pointer to the target outline descriptor.</p>
361</td></tr>
362</table>
363</td></tr></table>
364<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
365<p></p>
366<table cellpadding=3 border=0>
367<tr valign=top><td><b>xOffset</b></td><td>
368<p>The horizontal offset.</p>
369</td></tr>
370<tr valign=top><td><b>yOffset</b></td><td>
371<p>The vertical offset.</p>
372</td></tr>
373</table>
374</td></tr></table>
375</td></tr></table>
376<hr width="75%">
377<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
378<td width="100%"></td>
379<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
380
381<table align=center width="75%"><tr><td>
382<h4><a name="FT_Outline_Transform">FT_Outline_Transform</a></h4>
383<table align=center width="87%"><tr><td>
384Defined in FT_OUTLINE_H (freetype/ftoutln.h).
385</td></tr></table><br>
386<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
387
388  FT_EXPORT( <span class="keyword">void</span> )
389  <b>FT_Outline_Transform</b>( <span class="keyword">const</span> <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline,
390                        <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Matrix">FT_Matrix</a>*   matrix );
391
392</pre></table><br>
393<table align=center width="87%"><tr><td>
394<p>Apply a simple 2x2 matrix to all of an outline's points. Useful for applying rotations, slanting, flipping, etc.</p>
395</td></tr></table><br>
396<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
397<p></p>
398<table cellpadding=3 border=0>
399<tr valign=top><td><b>outline</b></td><td>
400<p>A pointer to the target outline descriptor.</p>
401</td></tr>
402</table>
403</td></tr></table>
404<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
405<p></p>
406<table cellpadding=3 border=0>
407<tr valign=top><td><b>matrix</b></td><td>
408<p>A pointer to the transformation matrix.</p>
409</td></tr>
410</table>
411</td></tr></table>
412<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
413<p>You can use <a href="ft2-outline_processing.html#FT_Outline_Translate">FT_Outline_Translate</a> if you need to translate the outline's points.</p>
414</td></tr></table>
415</td></tr></table>
416<hr width="75%">
417<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
418<td width="100%"></td>
419<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
420
421<table align=center width="75%"><tr><td>
422<h4><a name="FT_Outline_Embolden">FT_Outline_Embolden</a></h4>
423<table align=center width="87%"><tr><td>
424Defined in FT_OUTLINE_H (freetype/ftoutln.h).
425</td></tr></table><br>
426<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
427
428  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
429  <b>FT_Outline_Embolden</b>( <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline,
430                       <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>       strength );
431
432</pre></table><br>
433<table align=center width="87%"><tr><td>
434<p>Embolden an outline. The new outline will be at most 4&nbsp;times &lsquo;strength&rsquo; pixels wider and higher. You may think of the left and bottom borders as unchanged.</p>
435<p>Negative &lsquo;strength&rsquo; values to reduce the outline thickness are possible also.</p>
436</td></tr></table><br>
437<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
438<p></p>
439<table cellpadding=3 border=0>
440<tr valign=top><td><b>outline</b></td><td>
441<p>A handle to the target outline.</p>
442</td></tr>
443</table>
444</td></tr></table>
445<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
446<p></p>
447<table cellpadding=3 border=0>
448<tr valign=top><td><b>strength</b></td><td>
449<p>How strong the glyph is emboldened. Expressed in 26.6 pixel format.</p>
450</td></tr>
451</table>
452</td></tr></table>
453<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
454<p>FreeType error code. 0&nbsp;means success.</p>
455</td></tr></table>
456<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
457<p>The used algorithm to increase or decrease the thickness of the glyph doesn't change the number of points; this means that certain situations like acute angles or intersections are sometimes handled incorrectly.</p>
458<p>If you need &lsquo;better&rsquo; metrics values you should call <a href="ft2-outline_processing.html#FT_Outline_Get_CBox">FT_Outline_Get_CBox</a> ot <a href="ft2-outline_processing.html#FT_Outline_Get_BBox">FT_Outline_Get_BBox</a>.</p>
459<p>Example call:</p>
460<pre class="colored">
461  FT_Load_Glyph( face, index, FT_LOAD_DEFAULT );                   
462  if ( face-&gt;slot-&gt;format == FT_GLYPH_FORMAT_OUTLINE )             
463    FT_Outline_Embolden( &amp;face-&gt;slot-&gt;outline, strength );         
464</pre>
465</td></tr></table>
466</td></tr></table>
467<hr width="75%">
468<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
469<td width="100%"></td>
470<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
471
472<table align=center width="75%"><tr><td>
473<h4><a name="FT_Outline_Reverse">FT_Outline_Reverse</a></h4>
474<table align=center width="87%"><tr><td>
475Defined in FT_OUTLINE_H (freetype/ftoutln.h).
476</td></tr></table><br>
477<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
478
479  FT_EXPORT( <span class="keyword">void</span> )
480  <b>FT_Outline_Reverse</b>( <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline );
481
482</pre></table><br>
483<table align=center width="87%"><tr><td>
484<p>Reverse the drawing direction of an outline. This is used to ensure consistent fill conventions for mirrored glyphs.</p>
485</td></tr></table><br>
486<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
487<p></p>
488<table cellpadding=3 border=0>
489<tr valign=top><td><b>outline</b></td><td>
490<p>A pointer to the target outline descriptor.</p>
491</td></tr>
492</table>
493</td></tr></table>
494<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
495<p>This function toggles the bit flag <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_REVERSE_FILL</a> in the outline's &lsquo;flags&rsquo; field.</p>
496<p>It shouldn't be used by a normal client application, unless it knows what it is doing.</p>
497</td></tr></table>
498</td></tr></table>
499<hr width="75%">
500<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
501<td width="100%"></td>
502<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
503
504<table align=center width="75%"><tr><td>
505<h4><a name="FT_Outline_Check">FT_Outline_Check</a></h4>
506<table align=center width="87%"><tr><td>
507Defined in FT_OUTLINE_H (freetype/ftoutln.h).
508</td></tr></table><br>
509<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
510
511  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
512  <b>FT_Outline_Check</b>( <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline );
513
514</pre></table><br>
515<table align=center width="87%"><tr><td>
516<p>Check the contents of an outline descriptor.</p>
517</td></tr></table><br>
518<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
519<p></p>
520<table cellpadding=3 border=0>
521<tr valign=top><td><b>outline</b></td><td>
522<p>A handle to a source outline.</p>
523</td></tr>
524</table>
525</td></tr></table>
526<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
527<p>FreeType error code. 0&nbsp;means success.</p>
528</td></tr></table>
529</td></tr></table>
530<hr width="75%">
531<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
532<td width="100%"></td>
533<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
534
535<table align=center width="75%"><tr><td>
536<h4><a name="FT_Outline_Get_BBox">FT_Outline_Get_BBox</a></h4>
537<table align=center width="87%"><tr><td>
538Defined in FT_BBOX_H (freetype/ftbbox.h).
539</td></tr></table><br>
540<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
541
542  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
543  <b>FT_Outline_Get_BBox</b>( <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline,
544                       <a href="ft2-basic_types.html#FT_BBox">FT_BBox</a>     *abbox );
545
546</pre></table><br>
547<table align=center width="87%"><tr><td>
548<p>Compute the exact bounding box of an outline. This is slower than computing the control box. However, it uses an advanced algorithm which returns <i>very</i> quickly when the two boxes coincide. Otherwise, the outline Bézier arcs are traversed to extract their extrema.</p>
549</td></tr></table><br>
550<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
551<p></p>
552<table cellpadding=3 border=0>
553<tr valign=top><td><b>outline</b></td><td>
554<p>A pointer to the source outline.</p>
555</td></tr>
556</table>
557</td></tr></table>
558<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
559<p></p>
560<table cellpadding=3 border=0>
561<tr valign=top><td><b>abbox</b></td><td>
562<p>The outline's exact bounding box.</p>
563</td></tr>
564</table>
565</td></tr></table>
566<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
567<p>FreeType error code. 0&nbsp;means success.</p>
568</td></tr></table>
569</td></tr></table>
570<hr width="75%">
571<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
572<td width="100%"></td>
573<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
574
575<table align=center width="75%"><tr><td>
576<h4><a name="ft_outline_flags">ft_outline_flags</a></h4>
577<table align=center width="87%"><tr><td>
578Defined in FT_IMAGE_H (freetype/ftimage.h).
579</td></tr></table><br>
580<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
581
582#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_none</a>             <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_NONE</a>
583#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_owner</a>            <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_OWNER</a>
584#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_even_odd_fill</a>    <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_EVEN_ODD_FILL</a>
585#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_reverse_fill</a>     <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_REVERSE_FILL</a>
586#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_ignore_dropouts</a>  <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_IGNORE_DROPOUTS</a>
587#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_high_precision</a>   <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_HIGH_PRECISION</a>
588#define <a href="ft2-outline_processing.html#ft_outline_flags">ft_outline_single_pass</a>      <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_SINGLE_PASS</a>
589
590</pre></table><br>
591<table align=center width="87%"><tr><td>
592<p>These constants are deprecated. Please use the corresponding <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_FLAGS</a> values.</p>
593</td></tr></table><br>
594<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>values</b></em></td></tr><tr><td>
595<p></p>
596<table cellpadding=3 border=0>
597<tr valign=top><td><b>ft_outline_none</b></td><td>
598<p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_NONE</a>.</p>
599</td></tr>
600<tr valign=top><td><b>ft_outline_owner</b></td><td>
601<p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_OWNER</a>.</p>
602</td></tr>
603<tr valign=top><td colspan=0><b>ft_outline_even_odd_fill</b></td></tr>
604<tr valign=top><td></td><td>
605<p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_EVEN_ODD_FILL</a>.</p>
606</td></tr>
607<tr valign=top><td colspan=0><b>ft_outline_reverse_fill</b></td></tr>
608<tr valign=top><td></td><td>
609<p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_REVERSE_FILL</a>.</p>
610</td></tr>
611<tr valign=top><td colspan=0><b>ft_outline_ignore_dropouts</b></td></tr>
612<tr valign=top><td></td><td>
613<p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_IGNORE_DROPOUTS</a>.</p>
614</td></tr>
615<tr valign=top><td colspan=0><b>ft_outline_high_precision</b></td></tr>
616<tr valign=top><td></td><td>
617<p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_HIGH_PRECISION</a>.</p>
618</td></tr>
619<tr valign=top><td><b>ft_outline_single_pass</b></td><td>
620<p>See <a href="ft2-outline_processing.html#FT_OUTLINE_FLAGS">FT_OUTLINE_SINGLE_PASS</a>.</p>
621</td></tr>
622</table>
623</td></tr></table>
624</td></tr></table>
625<hr width="75%">
626<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
627<td width="100%"></td>
628<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
629
630<table align=center width="75%"><tr><td>
631<h4><a name="FT_Outline_MoveToFunc">FT_Outline_MoveToFunc</a></h4>
632<table align=center width="87%"><tr><td>
633Defined in FT_IMAGE_H (freetype/ftimage.h).
634</td></tr></table><br>
635<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
636
637  <span class="keyword">typedef</span> <span class="keyword">int</span>
638  (*<b>FT_Outline_MoveToFunc</b>)( <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  to,
639                            <span class="keyword">void</span>*             user );
640
641#define FT_Outline_MoveTo_Func  <b>FT_Outline_MoveToFunc</b>
642
643</pre></table><br>
644<table align=center width="87%"><tr><td>
645<p>A function pointer type used to describe the signature of a &lsquo;move to&rsquo; function during outline walking/decomposition.</p>
646<p>A &lsquo;move to&rsquo; is emitted to start a new contour in an outline.</p>
647</td></tr></table><br>
648<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
649<p></p>
650<table cellpadding=3 border=0>
651<tr valign=top><td><b>to</b></td><td>
652<p>A pointer to the target point of the &lsquo;move to&rsquo;.</p>
653</td></tr>
654<tr valign=top><td><b>user</b></td><td>
655<p>A typeless pointer which is passed from the caller of the decomposition function.</p>
656</td></tr>
657</table>
658</td></tr></table>
659<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
660<p>Error code. 0&nbsp;means success.</p>
661</td></tr></table>
662</td></tr></table>
663<hr width="75%">
664<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
665<td width="100%"></td>
666<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
667
668<table align=center width="75%"><tr><td>
669<h4><a name="FT_Outline_LineToFunc">FT_Outline_LineToFunc</a></h4>
670<table align=center width="87%"><tr><td>
671Defined in FT_IMAGE_H (freetype/ftimage.h).
672</td></tr></table><br>
673<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
674
675  <span class="keyword">typedef</span> <span class="keyword">int</span>
676  (*<b>FT_Outline_LineToFunc</b>)( <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  to,
677                            <span class="keyword">void</span>*             user );
678
679#define FT_Outline_LineTo_Func  <b>FT_Outline_LineToFunc</b>
680
681</pre></table><br>
682<table align=center width="87%"><tr><td>
683<p>A function pointer type used to describe the signature of a &lsquo;line to&rsquo; function during outline walking/decomposition.</p>
684<p>A &lsquo;line to&rsquo; is emitted to indicate a segment in the outline.</p>
685</td></tr></table><br>
686<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
687<p></p>
688<table cellpadding=3 border=0>
689<tr valign=top><td><b>to</b></td><td>
690<p>A pointer to the target point of the &lsquo;line to&rsquo;.</p>
691</td></tr>
692<tr valign=top><td><b>user</b></td><td>
693<p>A typeless pointer which is passed from the caller of the decomposition function.</p>
694</td></tr>
695</table>
696</td></tr></table>
697<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
698<p>Error code. 0&nbsp;means success.</p>
699</td></tr></table>
700</td></tr></table>
701<hr width="75%">
702<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
703<td width="100%"></td>
704<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
705
706<table align=center width="75%"><tr><td>
707<h4><a name="FT_Outline_ConicToFunc">FT_Outline_ConicToFunc</a></h4>
708<table align=center width="87%"><tr><td>
709Defined in FT_IMAGE_H (freetype/ftimage.h).
710</td></tr></table><br>
711<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
712
713  <span class="keyword">typedef</span> <span class="keyword">int</span>
714  (*<b>FT_Outline_ConicToFunc</b>)( <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  control,
715                             <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  to,
716                             <span class="keyword">void</span>*             user );
717
718#define FT_Outline_ConicTo_Func  <b>FT_Outline_ConicToFunc</b>
719
720</pre></table><br>
721<table align=center width="87%"><tr><td>
722<p>A function pointer type used to describe the signature of a &lsquo;conic to&rsquo; function during outline walking or decomposition.</p>
723<p>A &lsquo;conic to&rsquo; is emitted to indicate a second-order Bézier arc in the outline.</p>
724</td></tr></table><br>
725<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
726<p></p>
727<table cellpadding=3 border=0>
728<tr valign=top><td><b>control</b></td><td>
729<p>An intermediate control point between the last position and the new target in &lsquo;to&rsquo;.</p>
730</td></tr>
731<tr valign=top><td><b>to</b></td><td>
732<p>A pointer to the target end point of the conic arc.</p>
733</td></tr>
734<tr valign=top><td><b>user</b></td><td>
735<p>A typeless pointer which is passed from the caller of the decomposition function.</p>
736</td></tr>
737</table>
738</td></tr></table>
739<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
740<p>Error code. 0&nbsp;means success.</p>
741</td></tr></table>
742</td></tr></table>
743<hr width="75%">
744<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
745<td width="100%"></td>
746<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
747
748<table align=center width="75%"><tr><td>
749<h4><a name="FT_Outline_CubicToFunc">FT_Outline_CubicToFunc</a></h4>
750<table align=center width="87%"><tr><td>
751Defined in FT_IMAGE_H (freetype/ftimage.h).
752</td></tr></table><br>
753<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
754
755  <span class="keyword">typedef</span> <span class="keyword">int</span>
756  (*<b>FT_Outline_CubicToFunc</b>)( <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  control1,
757                             <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  control2,
758                             <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Vector">FT_Vector</a>*  to,
759                             <span class="keyword">void</span>*             user );
760
761#define FT_Outline_CubicTo_Func  <b>FT_Outline_CubicToFunc</b>
762
763</pre></table><br>
764<table align=center width="87%"><tr><td>
765<p>A function pointer type used to describe the signature of a &lsquo;cubic to&rsquo; function during outline walking or decomposition.</p>
766<p>A &lsquo;cubic to&rsquo; is emitted to indicate a third-order Bézier arc.</p>
767</td></tr></table><br>
768<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
769<p></p>
770<table cellpadding=3 border=0>
771<tr valign=top><td><b>control1</b></td><td>
772<p>A pointer to the first Bézier control point.</p>
773</td></tr>
774<tr valign=top><td><b>control2</b></td><td>
775<p>A pointer to the second Bézier control point.</p>
776</td></tr>
777<tr valign=top><td><b>to</b></td><td>
778<p>A pointer to the target end point.</p>
779</td></tr>
780<tr valign=top><td><b>user</b></td><td>
781<p>A typeless pointer which is passed from the caller of the decomposition function.</p>
782</td></tr>
783</table>
784</td></tr></table>
785<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
786<p>Error code. 0&nbsp;means success.</p>
787</td></tr></table>
788</td></tr></table>
789<hr width="75%">
790<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
791<td width="100%"></td>
792<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
793
794<table align=center width="75%"><tr><td>
795<h4><a name="FT_Outline_Funcs">FT_Outline_Funcs</a></h4>
796<table align=center width="87%"><tr><td>
797Defined in FT_IMAGE_H (freetype/ftimage.h).
798</td></tr></table><br>
799<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
800
801  <span class="keyword">typedef</span> <span class="keyword">struct</span>  FT_Outline_Funcs_
802  {
803    <a href="ft2-outline_processing.html#FT_Outline_MoveToFunc">FT_Outline_MoveToFunc</a>   move_to;
804    <a href="ft2-outline_processing.html#FT_Outline_LineToFunc">FT_Outline_LineToFunc</a>   line_to;
805    <a href="ft2-outline_processing.html#FT_Outline_ConicToFunc">FT_Outline_ConicToFunc</a>  conic_to;
806    <a href="ft2-outline_processing.html#FT_Outline_CubicToFunc">FT_Outline_CubicToFunc</a>  cubic_to;
807
808    <span class="keyword">int</span>                     shift;
809    <a href="ft2-basic_types.html#FT_Pos">FT_Pos</a>                  delta;
810
811  } <b>FT_Outline_Funcs</b>;
812
813</pre></table><br>
814<table align=center width="87%"><tr><td>
815<p>A structure to hold various function pointers used during outline decomposition in order to emit segments, conic, and cubic Béziers.</p>
816</td></tr></table><br>
817<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>fields</b></em></td></tr><tr><td>
818<p></p>
819<table cellpadding=3 border=0>
820<tr valign=top><td><b>move_to</b></td><td>
821<p>The &lsquo;move to&rsquo; emitter.</p>
822</td></tr>
823<tr valign=top><td><b>line_to</b></td><td>
824<p>The segment emitter.</p>
825</td></tr>
826<tr valign=top><td><b>conic_to</b></td><td>
827<p>The second-order Bézier arc emitter.</p>
828</td></tr>
829<tr valign=top><td><b>cubic_to</b></td><td>
830<p>The third-order Bézier arc emitter.</p>
831</td></tr>
832<tr valign=top><td><b>shift</b></td><td>
833<p>The shift that is applied to coordinates before they are sent to the emitter.</p>
834</td></tr>
835<tr valign=top><td><b>delta</b></td><td>
836<p>The delta that is applied to coordinates before they are sent to the emitter, but after the shift.</p>
837</td></tr>
838</table>
839</td></tr></table>
840<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>note</b></em></td></tr><tr><td>
841<p>The point coordinates sent to the emitters are the transformed version of the original coordinates (this is important for high accuracy during scan-conversion). The transformation is simple:</p>
842<pre class="colored">
843  x' = (x &lt;&lt; shift) - delta                                        
844  y' = (x &lt;&lt; shift) - delta                                        
845</pre>
846<p>Set the values of &lsquo;shift&rsquo; and &lsquo;delta&rsquo; to&nbsp;0 to get the original point coordinates.</p>
847</td></tr></table>
848</td></tr></table>
849<hr width="75%">
850<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
851<td width="100%"></td>
852<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
853
854<table align=center width="75%"><tr><td>
855<h4><a name="FT_Outline_Decompose">FT_Outline_Decompose</a></h4>
856<table align=center width="87%"><tr><td>
857Defined in FT_OUTLINE_H (freetype/ftoutln.h).
858</td></tr></table><br>
859<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
860
861  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
862  <b>FT_Outline_Decompose</b>( <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*              outline,
863                        <span class="keyword">const</span> <a href="ft2-outline_processing.html#FT_Outline_Funcs">FT_Outline_Funcs</a>*  func_interface,
864                        <span class="keyword">void</span>*                    user );
865
866</pre></table><br>
867<table align=center width="87%"><tr><td>
868<p>Walk over an outline's structure to decompose it into individual segments and Bézier arcs. This function also emits &lsquo;move to&rsquo; operations to indicate the start of new contours in the outline.</p>
869</td></tr></table><br>
870<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
871<p></p>
872<table cellpadding=3 border=0>
873<tr valign=top><td><b>outline</b></td><td>
874<p>A pointer to the source target.</p>
875</td></tr>
876<tr valign=top><td><b>func_interface</b></td><td>
877<p>A table of &lsquo;emitters&rsquo;, i.e., function pointers called during decomposition to indicate path operations.</p>
878</td></tr>
879</table>
880</td></tr></table>
881<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>inout</b></em></td></tr><tr><td>
882<p></p>
883<table cellpadding=3 border=0>
884<tr valign=top><td><b>user</b></td><td>
885<p>A typeless pointer which is passed to each emitter during the decomposition. It can be used to store the state during the decomposition.</p>
886</td></tr>
887</table>
888</td></tr></table>
889<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>
890<p>FreeType error code. 0&nbsp;means success.</p>
891</td></tr></table>
892</td></tr></table>
893<hr width="75%">
894<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
895<td width="100%"></td>
896<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
897
898<table align=center width="75%"><tr><td>
899<h4><a name="FT_Outline_Get_CBox">FT_Outline_Get_CBox</a></h4>
900<table align=center width="87%"><tr><td>
901Defined in FT_OUTLINE_H (freetype/ftoutln.h).
902</td></tr></table><br>
903<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
904
905  FT_EXPORT( <span class="keyword">void</span> )
906  <b>FT_Outline_Get_CBox</b>( <span class="keyword">const</span> <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*  outline,
907                       <a href="ft2-basic_types.html#FT_BBox">FT_BBox</a>           *acbox );
908
909</pre></table><br>
910<table align=center width="87%"><tr><td>
911<p>Return an outline's &lsquo;control box&rsquo;. The control box encloses all the outline's points, including Bézier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline which contains Bézier outside arcs).</p>
912<p>Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline. To get the latter, you can use the &lsquo;ftbbox&rsquo; component which is dedicated to this single task.</p>
913</td></tr></table><br>
914<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>input</b></em></td></tr><tr><td>
915<p></p>
916<table cellpadding=3 border=0>
917<tr valign=top><td><b>outline</b></td><td>
918<p>A pointer to the source outline descriptor.</p>
919</td></tr>
920</table>
921</td></tr></table>
922<table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>output</b></em></td></tr><tr><td>
923<p></p>
924<table cellpadding=3 border=0>
925<tr valign=top><td><b>acbox</b></td><td>
926<p>The outline's control box.</p>
927</td></tr>
928</table>
929</td></tr></table>
930</td></tr></table>
931<hr width="75%">
932<table align=center width="75%"><tr><td><font size=-2>[<a href="ft2-index.html">Index</a>]</font></td>
933<td width="100%"></td>
934<td><font size=-2>[<a href="ft2-toc.html">TOC</a>]</font></td></tr></table>
935
936<table align=center width="75%"><tr><td>
937<h4><a name="FT_Outline_Get_Bitmap">FT_Outline_Get_Bitmap</a></h4>
938<table align=center width="87%"><tr><td>
939Defined in FT_OUTLINE_H (freetype/ftoutln.h).
940</td></tr></table><br>
941<table align=center width="87%"><tr bgcolor="#D6E8FF"><td><pre>
942
943  FT_EXPORT( <a href="ft2-basic_types.html#FT_Error">FT_Error</a> )
944  <b>FT_Outline_Get_Bitmap</b>( <a href="ft2-base_interface.html#FT_Library">FT_Library</a>        library,
945                         <a href="ft2-outline_processing.html#FT_Outline">FT_Outline</a>*       outline,
946                         <span class="keyword">const</span> <a href="ft2-basic_types.html#FT_Bitmap">FT_Bitmap</a>  *abitmap );
947
948</pre></table><br>
949<table align

Large files files are truncated, but you can click here to view the full file