OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* ftoutln.h */ | 3 /* ftoutln.h */ |
4 /* */ | 4 /* */ |
5 /* Support for the FT_Outline type used to store glyph shapes of */ | 5 /* Support for the FT_Outline type used to store glyph shapes of */ |
6 /* most scalable font formats (specification). */ | 6 /* most scalable font formats (specification). */ |
7 /* */ | 7 /* */ |
8 /* Copyright 1996-2003, 2005-2011 by */ | 8 /* Copyright 1996-2003, 2005-2012 by */ |
9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
10 /* */ | 10 /* */ |
11 /* This file is part of the FreeType project, and may only be used, */ | 11 /* This file is part of the FreeType project, and may only be used, */ |
12 /* modified, and distributed under the terms of the FreeType project */ | 12 /* modified, and distributed under the terms of the FreeType project */ |
13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
14 /* this file you indicate that you have read the license and */ | 14 /* this file you indicate that you have read the license and */ |
15 /* understand and accept it fully. */ | 15 /* understand and accept it fully. */ |
16 /* */ | 16 /* */ |
17 /***************************************************************************/ | 17 /***************************************************************************/ |
18 | 18 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 /* */ | 52 /* */ |
53 /* <Order> */ | 53 /* <Order> */ |
54 /* FT_Outline */ | 54 /* FT_Outline */ |
55 /* FT_OUTLINE_FLAGS */ | 55 /* FT_OUTLINE_FLAGS */ |
56 /* FT_Outline_New */ | 56 /* FT_Outline_New */ |
57 /* FT_Outline_Done */ | 57 /* FT_Outline_Done */ |
58 /* FT_Outline_Copy */ | 58 /* FT_Outline_Copy */ |
59 /* FT_Outline_Translate */ | 59 /* FT_Outline_Translate */ |
60 /* FT_Outline_Transform */ | 60 /* FT_Outline_Transform */ |
61 /* FT_Outline_Embolden */ | 61 /* FT_Outline_Embolden */ |
| 62 /* FT_Outline_EmboldenXY */ |
62 /* FT_Outline_Reverse */ | 63 /* FT_Outline_Reverse */ |
63 /* FT_Outline_Check */ | 64 /* FT_Outline_Check */ |
64 /* */ | 65 /* */ |
65 /* FT_Outline_Get_CBox */ | 66 /* FT_Outline_Get_CBox */ |
66 /* FT_Outline_Get_BBox */ | 67 /* FT_Outline_Get_BBox */ |
67 /* */ | 68 /* */ |
68 /* FT_Outline_Get_Bitmap */ | 69 /* FT_Outline_Get_Bitmap */ |
69 /* FT_Outline_Render */ | 70 /* FT_Outline_Render */ |
70 /* */ | 71 /* */ |
71 /* FT_Outline_Decompose */ | 72 /* FT_Outline_Decompose */ |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 /* */ | 118 /* */ |
118 /* <Description> */ | 119 /* <Description> */ |
119 /* Create a new outline of a given size. */ | 120 /* Create a new outline of a given size. */ |
120 /* */ | 121 /* */ |
121 /* <Input> */ | 122 /* <Input> */ |
122 /* library :: A handle to the library object from where the */ | 123 /* library :: A handle to the library object from where the */ |
123 /* outline is allocated. Note however that the new */ | 124 /* outline is allocated. Note however that the new */ |
124 /* outline will *not* necessarily be *freed*, when */ | 125 /* outline will *not* necessarily be *freed*, when */ |
125 /* destroying the library, by @FT_Done_FreeType. */ | 126 /* destroying the library, by @FT_Done_FreeType. */ |
126 /* */ | 127 /* */ |
127 /* numPoints :: The maximal number of points within the outline. */ | 128 /* numPoints :: The maximum number of points within the outline. */ |
| 129 /* Must be smaller than or equal to 0xFFFF (65535). */ |
128 /* */ | 130 /* */ |
129 /* numContours :: The maximal number of contours within the outline. */ | 131 /* numContours :: The maximum number of contours within the outline. */ |
| 132 /* This value must be in the range 0 to `numPoints'. */ |
130 /* */ | 133 /* */ |
131 /* <Output> */ | 134 /* <Output> */ |
132 /* anoutline :: A handle to the new outline. */ | 135 /* anoutline :: A handle to the new outline. */ |
133 /* */ | 136 /* */ |
134 /* <Return> */ | 137 /* <Return> */ |
135 /* FreeType error code. 0~means success. */ | 138 /* FreeType error code. 0~means success. */ |
136 /* */ | 139 /* */ |
137 /* <Note> */ | 140 /* <Note> */ |
138 /* The reason why this function takes a `library' parameter is simply */ | 141 /* The reason why this function takes a `library' parameter is simply */ |
139 /* to use the library's memory allocator. */ | 142 /* to use the library's memory allocator. */ |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 /* } */ | 349 /* } */ |
347 /* */ | 350 /* */ |
348 FT_EXPORT( FT_Error ) | 351 FT_EXPORT( FT_Error ) |
349 FT_Outline_Embolden( FT_Outline* outline, | 352 FT_Outline_Embolden( FT_Outline* outline, |
350 FT_Pos strength ); | 353 FT_Pos strength ); |
351 | 354 |
352 | 355 |
353 /*************************************************************************/ | 356 /*************************************************************************/ |
354 /* */ | 357 /* */ |
355 /* <Function> */ | 358 /* <Function> */ |
| 359 /* FT_Outline_EmboldenXY */ |
| 360 /* */ |
| 361 /* <Description> */ |
| 362 /* Embolden an outline. The new outline will be `xstrength' pixels */ |
| 363 /* wider and `ystrength' pixels higher. Otherwise, it is similar to */ |
| 364 /* @FT_Outline_Embolden, which uses the same strength in both */ |
| 365 /* directions. */ |
| 366 /* */ |
| 367 FT_EXPORT( FT_Error ) |
| 368 FT_Outline_EmboldenXY( FT_Outline* outline, |
| 369 FT_Pos xstrength, |
| 370 FT_Pos ystrength ); |
| 371 |
| 372 |
| 373 /*************************************************************************/ |
| 374 /* */ |
| 375 /* <Function> */ |
356 /* FT_Outline_Reverse */ | 376 /* FT_Outline_Reverse */ |
357 /* */ | 377 /* */ |
358 /* <Description> */ | 378 /* <Description> */ |
359 /* Reverse the drawing direction of an outline. This is used to */ | 379 /* Reverse the drawing direction of an outline. This is used to */ |
360 /* ensure consistent fill conventions for mirrored glyphs. */ | 380 /* ensure consistent fill conventions for mirrored glyphs. */ |
361 /* */ | 381 /* */ |
362 /* <InOut> */ | 382 /* <InOut> */ |
363 /* outline :: A pointer to the target outline descriptor. */ | 383 /* outline :: A pointer to the target outline descriptor. */ |
364 /* */ | 384 /* */ |
365 /* <Note> */ | 385 /* <Note> */ |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 | 551 |
532 #endif /* __FTOUTLN_H__ */ | 552 #endif /* __FTOUTLN_H__ */ |
533 | 553 |
534 | 554 |
535 /* END */ | 555 /* END */ |
536 | 556 |
537 | 557 |
538 /* Local Variables: */ | 558 /* Local Variables: */ |
539 /* coding: utf-8 */ | 559 /* coding: utf-8 */ |
540 /* End: */ | 560 /* End: */ |
OLD | NEW |