| 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-2012 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, */ |
| 11 /* modified, and distributed under the terms of the FreeType project */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
| 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
| 13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
| 14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
| 15 /* */ | 15 /* */ |
| 16 /***************************************************************************/ | 16 /***************************************************************************/ |
| 17 | 17 |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 * | 264 * |
| 265 * line_cap :: | 265 * line_cap :: |
| 266 * The line cap style. | 266 * The line cap style. |
| 267 * | 267 * |
| 268 * line_join :: | 268 * line_join :: |
| 269 * The line join style. | 269 * The line join style. |
| 270 * | 270 * |
| 271 * miter_limit :: | 271 * miter_limit :: |
| 272 * The miter limit for the FT_STROKER_LINEJOIN_MITER_FIXED and | 272 * The miter limit for the FT_STROKER_LINEJOIN_MITER_FIXED and |
| 273 * FT_STROKER_LINEJOIN_MITER_VARIABLE line join styles, | 273 * FT_STROKER_LINEJOIN_MITER_VARIABLE line join styles, |
| 274 * expressed as 16.16 fixed point value. | 274 * expressed as 16.16 fixed-point value. |
| 275 * | 275 * |
| 276 * @note: | 276 * @note: |
| 277 * The radius is expressed in the same units as the outline | 277 * The radius is expressed in the same units as the outline |
| 278 * coordinates. | 278 * coordinates. |
| 279 */ | 279 */ |
| 280 FT_EXPORT( void ) | 280 FT_EXPORT( void ) |
| 281 FT_Stroker_Set( FT_Stroker stroker, | 281 FT_Stroker_Set( FT_Stroker stroker, |
| 282 FT_Fixed radius, | 282 FT_Fixed radius, |
| 283 FT_Stroker_LineCap line_cap, | 283 FT_Stroker_LineCap line_cap, |
| 284 FT_Stroker_LineJoin line_join, | 284 FT_Stroker_LineJoin line_join, |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 * | 675 * |
| 676 * destroy :: | 676 * destroy :: |
| 677 * A Boolean. If~1, the source glyph object is destroyed | 677 * A Boolean. If~1, the source glyph object is destroyed |
| 678 * on success. | 678 * on success. |
| 679 * | 679 * |
| 680 * @return: | 680 * @return: |
| 681 * FreeType error code. 0~means success. | 681 * FreeType error code. 0~means success. |
| 682 * | 682 * |
| 683 * @note: | 683 * @note: |
| 684 * The source glyph is untouched in case of error. | 684 * The source glyph is untouched in case of error. |
| 685 * |
| 686 * Adding stroke may yield a significantly wider and taller glyph |
| 687 * depending on how large of a radius was used to stroke the glyph. You |
| 688 * may need to manually adjust horizontal and vertical advance amounts |
| 689 * to account for this added size. |
| 685 */ | 690 */ |
| 686 FT_EXPORT( FT_Error ) | 691 FT_EXPORT( FT_Error ) |
| 687 FT_Glyph_Stroke( FT_Glyph *pglyph, | 692 FT_Glyph_Stroke( FT_Glyph *pglyph, |
| 688 FT_Stroker stroker, | 693 FT_Stroker stroker, |
| 689 FT_Bool destroy ); | 694 FT_Bool destroy ); |
| 690 | 695 |
| 691 | 696 |
| 692 /************************************************************** | 697 /************************************************************** |
| 693 * | 698 * |
| 694 * @function: | 699 * @function: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 712 * | 717 * |
| 713 * destroy :: | 718 * destroy :: |
| 714 * A Boolean. If~1, the source glyph object is destroyed | 719 * A Boolean. If~1, the source glyph object is destroyed |
| 715 * on success. | 720 * on success. |
| 716 * | 721 * |
| 717 * @return: | 722 * @return: |
| 718 * FreeType error code. 0~means success. | 723 * FreeType error code. 0~means success. |
| 719 * | 724 * |
| 720 * @note: | 725 * @note: |
| 721 * The source glyph is untouched in case of error. | 726 * The source glyph is untouched in case of error. |
| 727 * |
| 728 * Adding stroke may yield a significantly wider and taller glyph |
| 729 * depending on how large of a radius was used to stroke the glyph. You |
| 730 * may need to manually adjust horizontal and vertical advance amounts |
| 731 * to account for this added size. |
| 722 */ | 732 */ |
| 723 FT_EXPORT( FT_Error ) | 733 FT_EXPORT( FT_Error ) |
| 724 FT_Glyph_StrokeBorder( FT_Glyph *pglyph, | 734 FT_Glyph_StrokeBorder( FT_Glyph *pglyph, |
| 725 FT_Stroker stroker, | 735 FT_Stroker stroker, |
| 726 FT_Bool inside, | 736 FT_Bool inside, |
| 727 FT_Bool destroy ); | 737 FT_Bool destroy ); |
| 728 | 738 |
| 729 /* */ | 739 /* */ |
| 730 | 740 |
| 731 FT_END_HEADER | 741 FT_END_HEADER |
| 732 | 742 |
| 733 #endif /* __FT_STROKE_H__ */ | 743 #endif /* __FT_STROKE_H__ */ |
| 734 | 744 |
| 735 | 745 |
| 736 /* END */ | 746 /* END */ |
| 737 | 747 |
| 738 | 748 |
| 739 /* Local Variables: */ | 749 /* Local Variables: */ |
| 740 /* coding: utf-8 */ | 750 /* coding: utf-8 */ |
| 741 /* End: */ | 751 /* End: */ |
| OLD | NEW |