Changeset 251
- Timestamp:
- Jun 30, 2008, 6:26:14 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 123 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.cpp
r250 r251 96 96 extern "C" LuSignatureCheck * EXPENTRY getSignatureCheck() 97 97 { 98 98 return &lsc; 99 99 } 100 100 … … 295 295 dst = pixbuf_data + i * pixbuf_rowstride; 296 296 src = ((char *)color_ptr) + j * splash_rowstride; 297 //memcpy( dst, src, rowstride );298 297 memcpy( dst, src, rowstride ); 298 299 299 // source 4 Bpp, dest 3 Bpp 300 300 for ( k = 0, l = 0, m = 0; k < width; k++ ) { 301 302 303 304 301 dst[ l++ ] = src[ m++ ]; 302 dst[ l++ ] = src[ m++ ]; 303 dst[ l++ ] = src[ m++ ]; 304 m++; 305 305 } 306 306 } … … 798 798 PDFDoc *doc = ((PopplerDocument *)somThis->data)->doc; 799 799 800 PSOutputDev *out = new PSOutputDev( filename, doc->getXRef(), doc->getCatalog(), "",800 PSOutputDev *out = new PSOutputDev( filename, doc->getXRef(), doc->getCatalog(), NULL, 801 801 (first_page <= last_page) ? (first_page + 1) : (last_page + 1), 802 802 (first_page <= last_page) ? (last_page + 1) : (first_page + 1), 803 psModePS, (int)width, (int)height, 804 gFalse, 0, 0, 0, 0, gFalse ); 803 psModePS, (int)width, (int)height, gFalse ); 805 804 806 805 if ( !out->isOk() ) { … … 1339 1338 } 1340 1339 1340 1341 // TODO: currently unused, must be fixed as bpp and internal bpp is different 1341 1342 SOM_Scope LuPixbuf* SOMLINK getThumbnail(LuPopplerDocument *somSelf, 1342 1343 Environment *ev, long pagenum, -
trunk/Lucide/changelog
r250 r251 1 1 1.XX: 2 2 - PDF plugin: Poppler (pdf rendering) library updated to version 0.8.3. 3 - PDF plugin: freetype library updated to version 2.3.7. 3 4 4 5 1.20: -
trunk/poppler/freetype2/devel/ftoption.h
r209 r251 5 5 /* User-selectable configuration macros (specification only). */ 6 6 /* */ 7 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007 by*/7 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by */ 8 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 9 /* */ … … 437 437 #define TT_CONFIG_CMAP_FORMAT_10 438 438 #define TT_CONFIG_CMAP_FORMAT_12 439 #define TT_CONFIG_CMAP_FORMAT_14 439 440 440 441 … … 625 626 /*************************************************************************/ 626 627 /* */ 627 /* Compile autofit module with CJK script support. */ 628 /* Compile autofit module with CJK (Chinese, Japanese, Korean) script */ 629 /* support. */ 628 630 /* */ 629 631 #define AF_CONFIG_OPTION_CJK -
trunk/poppler/freetype2/include/freetype/config/ftconfig.h
r209 r251 140 140 /*************************************************************************/ 141 141 /* */ 142 /* IntN types */ 143 /* */ 144 /* Used to guarantee the size of some specific integers. */ 145 /* */ 146 typedef signed short FT_Int16; 142 /* <Section> */ 143 /* basic_types */ 144 /* */ 145 /*************************************************************************/ 146 147 148 /*************************************************************************/ 149 /* */ 150 /* <Type> */ 151 /* FT_Int16 */ 152 /* */ 153 /* <Description> */ 154 /* A typedef for a 16bit signed integer type. */ 155 /* */ 156 typedef signed short FT_Int16; 157 158 159 /*************************************************************************/ 160 /* */ 161 /* <Type> */ 162 /* FT_UInt16 */ 163 /* */ 164 /* <Description> */ 165 /* A typedef for a 16bit unsigned integer type. */ 166 /* */ 147 167 typedef unsigned short FT_UInt16; 168 169 /* */ 170 171 172 /* this #if 0 ... #endif clause is for documentation purposes */ 173 #if 0 174 175 /*************************************************************************/ 176 /* */ 177 /* <Type> */ 178 /* FT_Int32 */ 179 /* */ 180 /* <Description> */ 181 /* A typedef for a 32bit signed integer type. The size depends on */ 182 /* the configuration. */ 183 /* */ 184 typedef signed XXX FT_Int32; 185 186 187 /*************************************************************************/ 188 /* */ 189 /* <Type> */ 190 /* FT_UInt32 */ 191 /* */ 192 /* A typedef for a 32bit unsigned integer type. The size depends on */ 193 /* the configuration. */ 194 /* */ 195 typedef unsigned XXX FT_UInt32; 196 197 /* */ 198 199 #endif 148 200 149 201 #if FT_SIZEOF_INT == (32 / FT_CHAR_BIT) -
trunk/poppler/freetype2/include/freetype/config/ftheader.h
r182 r251 5 5 /* Build macros of the FreeType 2 library. */ 6 6 /* */ 7 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007 by*/7 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by */ 8 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 9 /* */ … … 75 75 /* <Description> */ 76 76 /* The following macros are defined to the name of specific */ 77 /* FreeType 77 /* FreeType~2 header files. They can be used directly in #include */ 78 78 /* statements as in: */ 79 79 /* */ … … 86 86 /* There are several reasons why we are now using macros to name */ 87 87 /* public header files. The first one is that such macros are not */ 88 /* limited to the infamous 8.3 88 /* limited to the infamous 8.3~naming rule required by DOS (and */ 89 89 /* `FT_MULTIPLE_MASTERS_H' is a lot more meaningful than `ftmm.h'). */ 90 90 /* */ 91 91 /* The second reason is that it allows for more flexibility in the */ 92 /* way FreeType 92 /* way FreeType~2 is installed on a given system. */ 93 93 /* */ 94 94 /*************************************************************************/ … … 104 104 * @description: 105 105 * A macro used in #include statements to name the file containing 106 * FreeType 106 * FreeType~2 configuration data. 107 107 * 108 108 */ … … 119 119 * @description: 120 120 * A macro used in #include statements to name the file containing 121 * FreeType 121 * FreeType~2 interface to the standard C library functions. 122 122 * 123 123 */ … … 134 134 * @description: 135 135 * A macro used in #include statements to name the file containing 136 * FreeType 136 * FreeType~2 project-specific configuration options. 137 137 * 138 138 */ … … 149 149 * @description: 150 150 * A macro used in #include statements to name the file containing the 151 * list of FreeType 151 * list of FreeType~2 modules that are statically linked to new library 152 152 * instances in @FT_Init_FreeType. 153 153 * … … 157 157 #endif 158 158 159 /* */ 159 160 160 161 /* public headers */ … … 167 168 * @description: 168 169 * A macro used in #include statements to name the file containing the 169 * base FreeType 170 * base FreeType~2 API. 170 171 * 171 172 */ … … 180 181 * @description: 181 182 * A macro used in #include statements to name the file containing the 182 * list of FreeType 183 * list of FreeType~2 error codes (and messages). 183 184 * 184 185 * It is included by @FT_FREETYPE_H. … … 195 196 * @description: 196 197 * A macro used in #include statements to name the file containing the 197 * list of FreeType 198 * list of FreeType~2 module error offsets (and messages). 198 199 * 199 200 */ … … 208 209 * @description: 209 210 * A macro used in #include statements to name the file containing the 210 * FreeType 211 * FreeType~2 interface to low-level operations (i.e., memory management 211 212 * and stream i/o). 212 213 * … … 240 241 * @description: 241 242 * A macro used in #include statements to name the file containing the 242 * basic data types defined by FreeType 243 * basic data types defined by FreeType~2. 243 244 * 244 245 * It is included by @FT_FREETYPE_H. … … 255 256 * @description: 256 257 * A macro used in #include statements to name the file containing the 257 * list management API of FreeType 258 * list management API of FreeType~2. 258 259 * 259 260 * (Most applications will never need to include this file.) … … 270 271 * @description: 271 272 * A macro used in #include statements to name the file containing the 272 * scalable outline management API of FreeType 273 * scalable outline management API of FreeType~2. 273 274 * 274 275 */ … … 296 297 * @description: 297 298 * A macro used in #include statements to name the file containing the 298 * module management API of FreeType 299 * module management API of FreeType~2. 299 300 * 300 301 */ … … 309 310 * @description: 310 311 * A macro used in #include statements to name the file containing the 311 * renderer module management API of FreeType 312 * renderer module management API of FreeType~2. 312 313 * 313 314 */ … … 322 323 * @description: 323 324 * A macro used in #include statements to name the file containing the 324 * types and API specific to the Type 325 * types and API specific to the Type~1 format. 325 326 * 326 327 */ … … 387 388 * 388 389 * @macro: 390 * FT_CID_H 391 * 392 * @description: 393 * A macro used in #include statements to name the file containing the 394 * definitions of an API which access CID font information from a 395 * face. 396 * 397 */ 398 #define FT_CID_H <freetype/ftcid.h> 399 400 401 /************************************************************************* 402 * 403 * @macro: 389 404 * FT_GZIP_H 390 405 * … … 469 484 * @description: 470 485 * A macro used in #include statements to name the file containing the 471 * API of the optional FreeType 486 * API of the optional FreeType~2 cache sub-system. 472 487 * 473 488 */ … … 482 497 * @description: 483 498 * A macro used in #include statements to name the file containing the 484 * `glyph image' API of the FreeType 499 * `glyph image' API of the FreeType~2 cache sub-system. 485 500 * 486 501 * It is used to define a cache for @FT_Glyph elements. You can also … … 502 517 * @description: 503 518 * A macro used in #include statements to name the file containing the 504 * `small bitmaps' API of the FreeType 519 * `small bitmaps' API of the FreeType~2 cache sub-system. 505 520 * 506 521 * It is used to define a cache for small glyph bitmaps in a relatively … … 523 538 * @description: 524 539 * A macro used in #include statements to name the file containing the 525 * `charmap' API of the FreeType 540 * `charmap' API of the FreeType~2 cache sub-system. 526 541 * 527 542 * This macro is deprecated. Simply include @FT_CACHE_H to have all … … 539 554 * @description: 540 555 * A macro used in #include statements to name the file containing the 541 * Macintosh-specific FreeType 556 * Macintosh-specific FreeType~2 API. The latter is used to access 542 557 * fonts embedded in resource forks. 543 558 * … … 556 571 * @description: 557 572 * A macro used in #include statements to name the file containing the 558 * optional multiple-masters management API of FreeType 573 * optional multiple-masters management API of FreeType~2. 559 574 * 560 575 */ … … 569 584 * @description: 570 585 * A macro used in #include statements to name the file containing the 571 * optional FreeType 586 * optional FreeType~2 API which accesses embedded `name' strings in 572 587 * SFNT-based font formats (i.e., TrueType and OpenType). 573 588 * … … 583 598 * @description: 584 599 * A macro used in #include statements to name the file containing the 585 * optional FreeType 600 * optional FreeType~2 API which validates OpenType tables (BASE, GDEF, 586 601 * GPOS, GSUB, JSTF). 587 602 * … … 597 612 * @description: 598 613 * A macro used in #include statements to name the file containing the 599 * optional FreeType 614 * optional FreeType~2 API which validates TrueTypeGX/AAT tables (feat, 600 615 * mort, morx, bsln, just, kern, opbd, trak, prop). 601 616 * … … 611 626 * @description: 612 627 * A macro used in #include statements to name the file containing the 613 * FreeType 628 * FreeType~2 API which accesses PFR-specific data. 614 629 * 615 630 */ … … 624 639 * @description: 625 640 * A macro used in #include statements to name the file containing the 626 * FreeType 641 * FreeType~2 API which provides functions to stroke outline paths. 627 642 */ 628 643 #define FT_STROKER_H <freetype/ftstroke.h> … … 636 651 * @description: 637 652 * A macro used in #include statements to name the file containing the 638 * FreeType 653 * FreeType~2 API which performs artificial obliquing and emboldening. 639 654 */ 640 655 #define FT_SYNTHESIS_H <freetype/ftsynth.h> … … 648 663 * @description: 649 664 * A macro used in #include statements to name the file containing the 650 * FreeType 665 * FreeType~2 API which provides functions specific to the XFree86 and 651 666 * X.Org X11 servers. 652 667 */ … … 661 676 * @description: 662 677 * A macro used in #include statements to name the file containing the 663 * FreeType 678 * FreeType~2 API which performs trigonometric computations (e.g., 664 679 * cosines and arc tangents). 665 680 */ … … 674 689 * @description: 675 690 * A macro used in #include statements to name the file containing the 676 * FreeType 691 * FreeType~2 API which performs color filtering for subpixel rendering. 677 692 */ 678 693 #define FT_LCD_FILTER_H <freetype/ftlcdfil.h> … … 682 697 * 683 698 * @macro: 699 * FT_UNPATENTED_HINTING_H 700 * 701 * @description: 702 * A macro used in #include statements to name the file containing the 703 * FreeType~2 API which performs color filtering for subpixel rendering. 704 */ 705 #define FT_UNPATENTED_HINTING_H <freetype/ttunpat.h> 706 707 708 /************************************************************************* 709 * 710 * @macro: 711 * FT_INCREMENTAL_H 712 * 713 * @description: 714 * A macro used in #include statements to name the file containing the 715 * FreeType~2 API which performs color filtering for subpixel rendering. 716 */ 717 #define FT_INCREMENTAL_H <freetype/ftincrem.h> 718 719 720 /************************************************************************* 721 * 722 * @macro: 684 723 * FT_GASP_H 685 724 * 686 725 * @description: 687 726 * A macro used in #include statements to name the file containing the 688 * FreeType 727 * FreeType~2 API which returns entries from the TrueType GASP table. 689 728 */ 690 729 #define FT_GASP_H <freetype/ftgasp.h> -
trunk/poppler/freetype2/include/freetype/config/ftoption.h
r209 r251 5 5 /* User-selectable configuration macros (specification only). */ 6 6 /* */ 7 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007 by*/7 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by */ 8 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 9 /* */ … … 437 437 #define TT_CONFIG_CMAP_FORMAT_10 438 438 #define TT_CONFIG_CMAP_FORMAT_12 439 #define TT_CONFIG_CMAP_FORMAT_14 439 440 440 441 … … 625 626 /*************************************************************************/ 626 627 /* */ 627 /* Compile autofit module with CJK script support. */ 628 /* Compile autofit module with CJK (Chinese, Japanese, Korean) script */ 629 /* support. */ 628 630 /* */ 629 631 #define AF_CONFIG_OPTION_CJK -
trunk/poppler/freetype2/include/freetype/freetype.h
r209 r251 5 5 /* FreeType high-level API and common types (specification only). */ 6 6 /* */ 7 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007 by*/7 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by */ 8 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 9 /* */ … … 87 87 /* */ 88 88 /* <Abstract> */ 89 /* The FreeType 90 /* */ 91 /* <Description> */ 92 /* This section describes the public high-level API of FreeType 89 /* The FreeType~2 base font interface. */ 90 /* */ 91 /* <Description> */ 92 /* This section describes the public high-level API of FreeType~2. */ 93 93 /* */ 94 94 /* <Order> */ … … 486 486 /* */ 487 487 /* <Note> */ 488 /* Since many 16 bit compilers don't like 32bit enumerations, you*/488 /* Since many 16-bit compilers don't like 32-bit enumerations, you */ 489 489 /* should redefine this macro in case of problems to something like */ 490 490 /* this: */ … … 528 528 /* <Values> */ 529 529 /* FT_ENCODING_NONE :: */ 530 /* The encoding value 530 /* The encoding value~0 is reserved. */ 531 531 /* */ 532 532 /* FT_ENCODING_UNICODE :: */ … … 560 560 /* */ 561 561 /* FT_ENCODING_JOHAB :: */ 562 /* The Korean standard character set (KS C-5601-1992), which */562 /* The Korean standard character set (KS~C 5601-1992), which */ 563 563 /* corresponds to MS Windows code page 1361. This character set */ 564 564 /* includes all possible Hangeul character combinations. */ 565 565 /* */ 566 566 /* FT_ENCODING_ADOBE_LATIN_1 :: */ 567 /* Corresponds to a Latin-1 encoding as defined in a Type 568 /* Post script font. It is limited to 256 character codes. */567 /* Corresponds to a Latin-1 encoding as defined in a Type~1 */ 568 /* PostScript font. It is limited to 256 character codes. */ 569 569 /* */ 570 570 /* FT_ENCODING_ADOBE_STANDARD :: */ 571 /* Corresponds to the Adobe Standard encoding, as found in Type 571 /* Corresponds to the Adobe Standard encoding, as found in Type~1, */ 572 572 /* CFF, and OpenType/CFF fonts. It is limited to 256 character */ 573 573 /* codes. */ 574 574 /* */ 575 575 /* FT_ENCODING_ADOBE_EXPERT :: */ 576 /* Corresponds to the Adobe Expert encoding, as found in Type 576 /* Corresponds to the Adobe Expert encoding, as found in Type~1, */ 577 577 /* CFF, and OpenType/CFF fonts. It is limited to 256 character */ 578 578 /* codes. */ 579 579 /* */ 580 580 /* FT_ENCODING_ADOBE_CUSTOM :: */ 581 /* Corresponds to a custom encoding, as found in Type 581 /* Corresponds to a custom encoding, as found in Type~1, CFF, and */ 582 582 /* OpenType/CFF fonts. It is limited to 256 character codes. */ 583 583 /* */ … … 608 608 /* <Note> */ 609 609 /* By default, FreeType automatically synthetizes a Unicode charmap */ 610 /* for Post script fonts, using their glyph names dictionaries. */610 /* for PostScript fonts, using their glyph names dictionaries. */ 611 611 /* However, it also reports the encodings defined explicitly in the */ 612 612 /* font file, for the cases when they are needed, with the Adobe */ … … 631 631 /* FT_ENCODING_APPLE_ROMAN). */ 632 632 /* */ 633 /* If `platform_id' is @TT_PLATFORM_MACINTOSH, use the function c*/633 /* If `platform_id' is @TT_PLATFORM_MACINTOSH, use the function */ 634 634 /* @FT_Get_CMap_Language_ID to query the Mac language ID which may be */ 635 635 /* needed to be able to distinguish Apple encoding variants. See */ … … 637 637 /* http://www.unicode.org/Public/MAPPINGS/VENDORS/APPLE/README.TXT */ 638 638 /* */ 639 /* to get an idea how to do that. Basically, if the language ID is 639 /* to get an idea how to do that. Basically, if the language ID is~0, */ 640 640 /* don't use it, otherwise subtract 1 from the language ID. Then */ 641 641 /* examine `encoding_id'. If, for example, `encoding_id' is */ 642 /* @TT_MAC_ID_ROMAN and the language ID (minus 642 /* @TT_MAC_ID_ROMAN and the language ID (minus~1) is */ 643 643 /* `TT_MAC_LANGID_GREEK', it is the Greek encoding, not Roman. */ 644 644 /* @TT_MAC_ID_ARABIC with `TT_MAC_LANGID_FARSI' means the Farsi */ … … 754 754 /* model private data of a given @FT_Face object. */ 755 755 /* */ 756 /* This structure might change between releases of FreeType 756 /* This structure might change between releases of FreeType~2 and is */ 757 757 /* not generally available to client applications. */ 758 758 /* */ … … 775 775 /* */ 776 776 /* face_index :: The index of the face in the font file. It */ 777 /* is set to 777 /* is set to~0 if there is only one face in */ 778 778 /* the font file. */ 779 779 /* */ … … 790 790 /* `num_fixed_sizes'), it is set to the number */ 791 791 /* of outline glyphs. */ 792 /* */ 793 /* For CID-keyed fonts, this value gives the */ 794 /* highest CID used in the font. */ 792 795 /* */ 793 796 /* family_name :: The face's family name. This is an ASCII */ … … 800 803 /* this string. Applications should use the */ 801 804 /* format specific interface to access them. */ 805 /* Can be NULL (e.g., in fonts embedded in a */ 806 /* PDF file). */ 802 807 /* */ 803 808 /* style_name :: The face's style name. This is an ASCII */ … … 837 842 /* formats. */ 838 843 /* */ 844 /* Note that the bounding box might be off by */ 845 /* (at least) one pixel for hinted fonts. See */ 846 /* @FT_Size_Metrics for further discussion. */ 847 /* */ 839 848 /* units_per_EM :: The number of font units per EM square for */ 840 849 /* this face. This is typically 2048 for */ 841 /* TrueType fonts, and 1000 for Type 850 /* TrueType fonts, and 1000 for Type~1 fonts. */ 842 851 /* Only relevant for scalable formats. */ 843 852 /* */ … … 1019 1028 /* the SFNT `gasp' table only if the native TrueType hinting engine */ 1020 1029 /* (with the bytecode interpreter) is available and active. */ 1030 /* */ 1031 /* FT_FACE_FLAG_CID_KEYED :: */ 1032 /* Set if the font is CID-keyed. In that case, the font is not */ 1033 /* accessed by glyph indices but by CID values. For subsetted */ 1034 /* CID-keyed fonts this has the consequence that not all index */ 1035 /* values are a valid argument to FT_Load_Glyph. Only the CID */ 1036 /* values for which corresponding glyphs in the subsetted font */ 1037 /* exist make FT_Load_Glyph return successfully; in all other cases */ 1038 /* you get an `FT_Err_Invalid_Argument' error. */ 1021 1039 /* */ 1022 1040 #define FT_FACE_FLAG_SCALABLE ( 1L << 0 ) … … 1032 1050 #define FT_FACE_FLAG_EXTERNAL_STREAM ( 1L << 10 ) 1033 1051 #define FT_FACE_FLAG_HINTER ( 1L << 11 ) 1052 #define FT_FACE_FLAG_CID_KEYED ( 1L << 12 ) 1034 1053 1035 1054 /* */ … … 1088 1107 * @description: 1089 1108 * A macro that returns true whenever a face object contains a scalable 1090 * font face (true for TrueType, Type 1, Type42, CID, OpenType/CFF,1109 * font face (true for TrueType, Type~1, Type~42, CID, OpenType/CFF, 1091 1110 * and PFR font formats. 1092 1111 * … … 1188 1207 1189 1208 1209 /************************************************************************* 1210 * 1211 * @macro: 1212 * FT_IS_CID_KEYED( face ) 1213 * 1214 * @description: 1215 * A macro that returns true whenever a face object contains a CID-keyed 1216 * font. See the discussion of @FT_FACE_FLAG_CID_KEYED for more 1217 * details. 1218 * 1219 * If this macro is true, all functions defined in @FT_CID_H are 1220 * available. 1221 * 1222 */ 1223 #define FT_IS_CID_KEYED( face ) \ 1224 ( face->face_flags & FT_FACE_FLAG_CID_KEYED ) 1225 1226 1190 1227 /*************************************************************************/ 1191 1228 /* */ … … 1199 1236 /* <Values> */ 1200 1237 /* FT_STYLE_FLAG_ITALIC :: */ 1201 /* Indicates that a given face is italicized.*/1238 /* Indicates that a given face style is italic or oblique. */ 1202 1239 /* */ 1203 1240 /* FT_STYLE_FLAG_BOLD :: */ 1204 1241 /* Indicates that a given face is bold. */ 1205 1242 /* */ 1243 /* <Note> */ 1244 /* The style information as provided by FreeType is very basic. More */ 1245 /* details are beyond the scope and should be done on a higher level */ 1246 /* (for example, by analyzing various fields of the `OS/2' table in */ 1247 /* SFNT based fonts). */ 1248 /* */ 1206 1249 #define FT_STYLE_FLAG_ITALIC ( 1 << 0 ) 1207 1250 #define FT_STYLE_FLAG_BOLD ( 1 << 1 ) … … 1215 1258 /* <Description> */ 1216 1259 /* An opaque handle to an `FT_Size_InternalRec' structure, used to */ 1217 /* model private data of a given FT_Size object.*/1260 /* model private data of a given @FT_Size object. */ 1218 1261 /* */ 1219 1262 typedef struct FT_Size_InternalRec_* FT_Size_Internal; … … 1346 1389 /* <Description> */ 1347 1390 /* An opaque handle to an `FT_Slot_InternalRec' structure, used to */ 1348 /* model private data of a given FT_GlyphSlot object.*/1391 /* model private data of a given @FT_GlyphSlot object. */ 1349 1392 /* */ 1350 1393 typedef struct FT_Slot_InternalRec_* FT_Slot_Internal; … … 1426 1469 /* integer pixels. Remember that this is the */ 1427 1470 /* distance from the baseline to the top-most */ 1428 /* glyph scanline, upwards y -coordinates being */1471 /* glyph scanline, upwards y~coordinates being */ 1429 1472 /* *positive*. */ 1430 1473 /* */ … … 1449 1492 /* control_data :: Certain font drivers can also return the */ 1450 1493 /* control data for a given glyph image (e.g. */ 1451 /* TrueType bytecode, Type 1494 /* TrueType bytecode, Type~1 charstrings, etc.). */ 1452 1495 /* This field is a pointer to such data. */ 1453 1496 /* */ … … 1471 1514 /* If @FT_Load_Glyph is called with default flags (see */ 1472 1515 /* @FT_LOAD_DEFAULT) the glyph image is loaded in the glyph slot in */ 1473 /* its native format (e.g., an outline glyph for TrueType and Type 1516 /* its native format (e.g., an outline glyph for TrueType and Type~1 */ 1474 1517 /* formats). */ 1475 1518 /* */ … … 1574 1617 /* */ 1575 1618 /* <Return> */ 1576 /* FreeType error code. 0 1619 /* FreeType error code. 0~means success. */ 1577 1620 /* */ 1578 1621 FT_EXPORT( FT_Error ) … … 1593 1636 /* */ 1594 1637 /* <Return> */ 1595 /* FreeType error code. 0 1638 /* FreeType error code. 0~means success. */ 1596 1639 /* */ 1597 1640 FT_EXPORT( FT_Error ) … … 1613 1656 /* FT_OPEN_STREAM :: Copy the stream from the `stream' field. */ 1614 1657 /* */ 1615 /* FT_OPEN_PATHNAME :: Create a new input stream from a C 1616 /* path name.*/1658 /* FT_OPEN_PATHNAME :: Create a new input stream from a C~path */ 1659 /* name. */ 1617 1660 /* */ 1618 1661 /* FT_OPEN_DRIVER :: Use the `driver' field. */ … … 1696 1739 /* driver :: This field is exclusively used by @FT_Open_Face; */ 1697 1740 /* it simply specifies the font driver to use to open */ 1698 /* the face. If set to 1741 /* the face. If set to~0, FreeType tries to load the */ 1699 1742 /* face with each one of the drivers in its list. */ 1700 1743 /* */ … … 1759 1802 /* */ 1760 1803 /* face_index :: The index of the face within the font. The first */ 1761 /* face has index 1804 /* face has index~0. */ 1762 1805 /* */ 1763 1806 /* <Output> */ … … 1767 1810 /* */ 1768 1811 /* <Return> */ 1769 /* FreeType error code. 0 1812 /* FreeType error code. 0~means success. */ 1770 1813 /* */ 1771 1814 FT_EXPORT( FT_Error ) … … 1794 1837 /* */ 1795 1838 /* face_index :: The index of the face within the font. The first */ 1796 /* face has index 1839 /* face has index~0. */ 1797 1840 /* */ 1798 1841 /* <Output> */ … … 1802 1845 /* */ 1803 1846 /* <Return> */ 1804 /* FreeType error code. 0 1847 /* FreeType error code. 0~means success. */ 1805 1848 /* */ 1806 1849 /* <Note> */ … … 1832 1875 /* */ 1833 1876 /* face_index :: The index of the face within the font. The first */ 1834 /* face has index 1877 /* face has index~0. */ 1835 1878 /* */ 1836 1879 /* <Output> */ … … 1840 1883 /* */ 1841 1884 /* <Return> */ 1842 /* FreeType error code. 0 1885 /* FreeType error code. 0~means success. */ 1843 1886 /* */ 1844 1887 /* <Note> */ … … 1849 1892 /* FT_Open_Face can be used to quickly check whether the font */ 1850 1893 /* format of a given font resource is supported by FreeType. If the */ 1851 /* `face_index' field is negative, the function's return value is 1894 /* `face_index' field is negative, the function's return value is~0 */ 1852 1895 /* if the font format is recognized, or non-zero otherwise; */ 1853 1896 /* the function returns a more or less empty face handle in `*aface' */ … … 1882 1925 /* */ 1883 1926 /* <Return> */ 1884 /* FreeType error code. 0 1927 /* FreeType error code. 0~means success. */ 1885 1928 /* */ 1886 1929 FT_EXPORT( FT_Error ) … … 1897 1940 /* `Attach' data to a face object. Normally, this is used to read */ 1898 1941 /* additional information for the face object. For example, you can */ 1899 /* attach an AFM file that comes with a Type 1942 /* attach an AFM file that comes with a Type~1 font to get the */ 1900 1943 /* kerning values and other metrics. */ 1901 1944 /* */ … … 1908 1951 /* */ 1909 1952 /* <Return> */ 1910 /* FreeType error code. 0 1953 /* FreeType error code. 0~means success. */ 1911 1954 /* */ 1912 1955 /* <Note> */ … … 1937 1980 /* */ 1938 1981 /* <Return> */ 1939 /* FreeType error code. 0 1982 /* FreeType error code. 0~means success. */ 1940 1983 /* */ 1941 1984 FT_EXPORT( FT_Error ) … … 1959 2002 /* */ 1960 2003 /* <Return> */ 1961 /* FreeType error code. 0 2004 /* FreeType error code. 0~means success. */ 1962 2005 /* */ 1963 2006 FT_EXPORT( FT_Error ) … … 2056 2099 FT_UInt vertResolution; 2057 2100 2058 } FT_Size_RequestRec, *FT_Size_Request; 2101 } FT_Size_RequestRec; 2102 2103 2104 /*************************************************************************/ 2105 /* */ 2106 /* <Struct> */ 2107 /* FT_Size_Request */ 2108 /* */ 2109 /* <Description> */ 2110 /* A handle to a size request structure. */ 2111 /* */ 2112 typedef struct FT_Size_RequestRec_ *FT_Size_Request; 2059 2113 2060 2114 … … 2074 2128 /* */ 2075 2129 /* <Return> */ 2076 /* FreeType error code. 0 2130 /* FreeType error code. 0~means success. */ 2077 2131 /* */ 2078 2132 /* <Note> */ … … 2109 2163 /* */ 2110 2164 /* <Return> */ 2111 /* FreeType error code. 0 2165 /* FreeType error code. 0~means success. */ 2112 2166 /* */ 2113 2167 /* <Note> */ … … 2148 2202 /* */ 2149 2203 /* <Return> */ 2150 /* FreeType error code. 0 2204 /* FreeType error code. 0~means success. */ 2151 2205 /* */ 2152 2206 FT_EXPORT( FT_Error ) … … 2181 2235 /* */ 2182 2236 /* <Return> */ 2183 /* FreeType error code. 0 2237 /* FreeType error code. 0~means success. */ 2184 2238 /* */ 2185 2239 /* <Note> */ 2186 2240 /* The loaded glyph may be transformed. See @FT_Set_Transform for */ 2187 2241 /* the details. */ 2242 /* */ 2243 /* For subsetted CID-keyed fonts, `FT_Err_Invalid_Argument' is */ 2244 /* returned for invalid CID values (this is, for CID values which */ 2245 /* don't have a corresponding glyph in the font). See the discussion */ 2246 /* of the @FT_FACE_FLAG_CID_KEYED flag for more details. */ 2188 2247 /* */ 2189 2248 FT_EXPORT( FT_Error ) … … 2217 2276 /* */ 2218 2277 /* <Return> */ 2219 /* FreeType error code. 0 2278 /* FreeType error code. 0~means success. */ 2220 2279 /* */ 2221 2280 /* <Note> */ … … 2239 2298 * @values: 2240 2299 * FT_LOAD_DEFAULT :: 2241 * Corresponding to 2300 * Corresponding to~0, this value is used as the default glyph load 2242 2301 * operation. In this case, the following happens: 2243 2302 * … … 2329 2388 * This flag is used with @FT_LOAD_RENDER to indicate that you want to 2330 2389 * render an outline glyph to a 1-bit monochrome bitmap glyph, with 2331 * 8 2390 * 8~pixels packed into each byte of the bitmap data. 2332 2391 * 2333 2392 * Note that this has no effect on the hinting algorithm used. You … … 2368 2427 #define FT_LOAD_MONOCHROME 0x1000 2369 2428 #define FT_LOAD_LINEAR_DESIGN 0x2000 2370 2371 /* temporary hack! */ 2372 #define FT_LOAD_SBITS_ONLY 0x4000 2429 #define FT_LOAD_SBITS_ONLY 0x4000 /* temporary hack! */ 2373 2430 #define FT_LOAD_NO_AUTOHINT 0x8000U 2374 2431 … … 2402 2459 * A lighter hinting algorithm for non-monochrome modes. Many 2403 2460 * generated glyphs are more fuzzy but better resemble its original 2404 * shape. A bit like rendering on Mac OS 2461 * shape. A bit like rendering on Mac OS~X. 2405 2462 * 2406 2463 * As a special exception, this target implies @FT_LOAD_FORCE_AUTOHINT. … … 2449 2506 2450 2507 2451 /* 2508 /************************************************************************** 2509 * 2452 2510 * @macro: 2453 2511 * FT_LOAD_TARGET_MODE … … 2456 2514 * Return the @FT_Render_Mode corresponding to a given 2457 2515 * @FT_LOAD_TARGET_XXX value. 2516 * 2458 2517 */ 2459 2518 2460 2519 #define FT_LOAD_TARGET_MODE( x ) ( (FT_Render_Mode)( ( (x) >> 16 ) & 15 ) ) 2461 2462 /* */2463 2520 2464 2521 … … 2477 2534 /* */ 2478 2535 /* <Input> */ 2479 /* matrix :: A pointer to the transformation's 2x2 matrix. Use 2536 /* matrix :: A pointer to the transformation's 2x2 matrix. Use~0 for */ 2480 2537 /* the identity matrix. */ 2481 /* delta :: A pointer to the translation vector. Use 2538 /* delta :: A pointer to the translation vector. Use~0 for the null */ 2482 2539 /* vector. */ 2483 2540 /* */ … … 2504 2561 /* <Description> */ 2505 2562 /* An enumeration type that lists the render modes supported by */ 2506 /* FreeType 2563 /* FreeType~2. Each mode corresponds to a specific type of scanline */ 2507 2564 /* conversion performed on the outline. */ 2508 2565 /* */ … … 2511 2568 /* bitmap. */ 2512 2569 /* */ 2570 /* All modes except @FT_RENDER_MODE_MONO use 256 levels of opacity. */ 2571 /* */ 2513 2572 /* <Values> */ 2514 2573 /* FT_RENDER_MODE_NORMAL :: */ 2515 2574 /* This is the default render mode; it corresponds to 8-bit */ 2516 /* anti-aliased bitmaps , using 256 levels of opacity.*/2575 /* anti-aliased bitmaps. */ 2517 2576 /* */ 2518 2577 /* FT_RENDER_MODE_LIGHT :: */ … … 2523 2582 /* */ 2524 2583 /* FT_RENDER_MODE_MONO :: */ 2525 /* This mode corresponds to 1-bit bitmaps. */ 2584 /* This mode corresponds to 1-bit bitmaps (with 2~levels of */ 2585 /* opacity). */ 2526 2586 /* */ 2527 2587 /* FT_RENDER_MODE_LCD :: */ 2528 2588 /* This mode corresponds to horizontal RGB and BGR sub-pixel */ 2529 2589 /* displays, like LCD-screens. It produces 8-bit bitmaps that are */ 2530 /* 3 2590 /* 3~times the width of the original glyph outline in pixels, and */ 2531 2591 /* which use the @FT_PIXEL_MODE_LCD mode. */ 2532 2592 /* */ … … 2534 2594 /* This mode corresponds to vertical RGB and BGR sub-pixel displays */ 2535 2595 /* (like PDA screens, rotated LCD displays, etc.). It produces */ 2536 /* 8-bit bitmaps that are 3 2596 /* 8-bit bitmaps that are 3~times the height of the original */ 2537 2597 /* glyph outline in pixels and use the @FT_PIXEL_MODE_LCD_V mode. */ 2538 2598 /* */ 2539 2599 /* <Note> */ 2540 /* The LCD-optimized glyph bitmaps produced by FT_Render_Glyph are */ 2541 /* _not_ _filtered_ to reduce color-fringes. It is up to the caller */ 2542 /* to perform this pass. */ 2600 /* The LCD-optimized glyph bitmaps produced by FT_Render_Glyph can be */ 2601 /* filtered to reduce color-fringes by using @FT_Library_SetLcdFilter */ 2602 /* (not active in the default builds). It is up to the caller to */ 2603 /* either call @FT_Library_SetLcdFilter (if available) or do the */ 2604 /* filtering itself. */ 2543 2605 /* */ 2544 2606 typedef enum FT_Render_Mode_ … … 2592 2654 /* */ 2593 2655 /* <Return> */ 2594 /* FreeType error code. 0 2656 /* FreeType error code. 0~means success. */ 2595 2657 /* */ 2596 2658 FT_EXPORT( FT_Error ) … … 2610 2672 /* <Values> */ 2611 2673 /* FT_KERNING_DEFAULT :: Return scaled and grid-fitted kerning */ 2612 /* distances (value is 2674 /* distances (value is~0). */ 2613 2675 /* */ 2614 2676 /* FT_KERNING_UNFITTED :: Return scaled but un-grid-fitted kerning */ … … 2688 2750 /* */ 2689 2751 /* <Return> */ 2690 /* FreeType error code. 0 2752 /* FreeType error code. 0~means success. */ 2691 2753 /* */ 2692 2754 /* <Note> */ … … 2723 2785 /* */ 2724 2786 /* <Return> */ 2725 /* FreeType error code. 0 2787 /* FreeType error code. 0~means success. */ 2726 2788 /* */ 2727 2789 FT_EXPORT( FT_Error ) … … 2739 2801 /* <Description> */ 2740 2802 /* Retrieve the ASCII name of a given glyph in a face. This only */ 2741 /* works for those faces where @FT_HAS_GLYPH_NAMES(face) returns 2803 /* works for those faces where @FT_HAS_GLYPH_NAMES(face) returns~1. */ 2742 2804 /* */ 2743 2805 /* <Input> */ … … 2754 2816 /* */ 2755 2817 /* <Return> */ 2756 /* FreeType error code. 0 2818 /* FreeType error code. 0~means success. */ 2757 2819 /* */ 2758 2820 /* <Note> */ 2759 2821 /* An error is returned if the face doesn't provide glyph names or if */ 2760 2822 /* the glyph index is invalid. In all cases of failure, the first */ 2761 /* byte of `buffer' is set to 2823 /* byte of `buffer' is set to~0 to indicate an empty name. */ 2762 2824 /* */ 2763 2825 /* The glyph name is truncated to fit within the buffer if it is too */ … … 2781 2843 /* */ 2782 2844 /* <Description> */ 2783 /* Retrieve the ASCII Post script name of a given face, if available. */2784 /* This only works with Post script and TrueType fonts. */2845 /* Retrieve the ASCII PostScript name of a given face, if available. */ 2846 /* This only works with PostScript and TrueType fonts. */ 2785 2847 /* */ 2786 2848 /* <Input> */ … … 2788 2850 /* */ 2789 2851 /* <Return> */ 2790 /* A pointer to the face's Post script name. NULL if unavailable. */2852 /* A pointer to the face's PostScript name. NULL if unavailable. */ 2791 2853 /* */ 2792 2854 /* <Note> */ … … 2814 2876 /* */ 2815 2877 /* <Return> */ 2816 /* FreeType error code. 0 2878 /* FreeType error code. 0~means success. */ 2817 2879 /* */ 2818 2880 /* <Note> */ … … 2822 2884 /* Because many fonts contain more than a single cmap for Unicode */ 2823 2885 /* encoding, this function has some special code to select the one */ 2824 /* which covers Unicode best. It is thus preferable to */ 2886 /* which covers Unicode best (`best' in the sense that a UCS-4 cmap */ 2887 /* is preferred to a UCS-2 cmap). It is thus preferable to */ 2825 2888 /* @FT_Set_Charmap in this case. */ 2826 2889 /* */ … … 2845 2908 /* */ 2846 2909 /* <Return> */ 2847 /* FreeType error code. 0 2910 /* FreeType error code. 0~means success. */ 2848 2911 /* */ 2849 2912 /* <Note> */ … … 2852 2915 /* table). */ 2853 2916 /* */ 2917 /* It also fails if a type~14 charmap is selected. */ 2918 /* */ 2854 2919 FT_EXPORT( FT_Error ) 2855 2920 FT_Set_Charmap( FT_Face face, … … 2893 2958 /* */ 2894 2959 /* <Return> */ 2895 /* The glyph index. 0 2960 /* The glyph index. 0~means `undefined character code'. */ 2896 2961 /* */ 2897 2962 /* <Note> */ … … 2899 2964 /* directly, be aware that the glyph index returned by this function */ 2900 2965 /* doesn't always correspond to the internal indices used within */ 2901 /* the file. This is done to ensure that value 2966 /* the file. This is done to ensure that value~0 always corresponds */ 2902 2967 /* to the `missing glyph'. */ 2903 2968 /* */ … … 2921 2986 /* */ 2922 2987 /* <Output> */ 2923 /* agindex :: Glyph index of first character code. 0 2988 /* agindex :: Glyph index of first character code. 0~if charmap is */ 2924 2989 /* empty. */ 2925 2990 /* */ … … 2946 3011 /* } */ 2947 3012 /* */ 2948 /* Note that `*agindex' is set to 2949 /* result itself can be 2950 /* when the value 3013 /* Note that `*agindex' is set to~0 if the charmap is empty. The */ 3014 /* result itself can be~0 in two cases: if the charmap is empty or */ 3015 /* when the value~0 is the first valid character code. */ 2951 3016 /* */ 2952 3017 FT_EXPORT( FT_ULong ) … … 2970 3035 /* */ 2971 3036 /* <Output> */ 2972 /* agindex :: Glyph index of first character code. 0 3037 /* agindex :: Glyph index of first character code. 0~if charmap */ 2973 3038 /* is empty. */ 2974 3039 /* */ … … 2981 3046 /* note for this function for a simple code example. */ 2982 3047 /* */ 2983 /* Note that `*agindex' is set to 3048 /* Note that `*agindex' is set to~0 when there are no more codes in */ 2984 3049 /* the charmap. */ 2985 3050 /* */ … … 3005 3070 /* */ 3006 3071 /* <Return> */ 3007 /* The glyph index. 0 3072 /* The glyph index. 0~means `undefined character code'. */ 3008 3073 /* */ 3009 3074 FT_EXPORT( FT_UInt ) … … 3074 3139 * 3075 3140 * @return: 3076 * FreeType error code. 0 3141 * FreeType error code. 0~means success. 3077 3142 * 3078 3143 * @note: … … 3090 3155 FT_Int *p_arg2, 3091 3156 FT_Matrix *p_transform ); 3157 3158 3159 /*************************************************************************/ 3160 /* */ 3161 /* <Section> */ 3162 /* glyph_variants */ 3163 /* */ 3164 /* <Title> */ 3165 /* Glyph Variants */ 3166 /* */ 3167 /* <Abstract> */ 3168 /* The FreeType~2 interface to Unicode Ideographic Variation */ 3169 /* Sequences (IVS), using the SFNT cmap format~14. */ 3170 /* */ 3171 /* <Description> */ 3172 /* Many CJK characters have variant forms. They are a sort of grey */ 3173 /* area somewhere between being totally irrelevant and semantically */ 3174 /* distinct; for this reason, the Unicode consortium decided to */ 3175 /* introduce Ideographic Variation Sequences (IVS), consisting of a */ 3176 /* Unicode base character and one of 240 variant selectors */ 3177 /* (U+E0100-U+E01EF), instead of further extending the already huge */ 3178 /* code range for CJK characters. */ 3179 /* */ 3180 /* An IVS is registered and unique; for further details please refer */ 3181 /* to Unicode Technical Report #37, the Ideographic Variation */ 3182 /* Database. To date (October 2007), the character with the most */ 3183 /* variants is U+908A, having 8~such IVS. */ 3184 /* */ 3185 /* Adobe and MS decided to support IVS with a new cmap subtable */ 3186 /* (format~14). It is an odd subtable because it is not a mapping of */ 3187 /* input code points to glyphs, but contains lists of all variants */ 3188 /* supported by the font. */ 3189 /* */ 3190 /* A variant may be either `default' or `non-default'. A default */ 3191 /* variant is the one you will get for that code point if you look it */ 3192 /* up in the standard Unicode cmap. A non-default variant is a */ 3193 /* different glyph. */ 3194 /* */ 3195 /*************************************************************************/ 3196 3197 3198 /*************************************************************************/ 3199 /* */ 3200 /* <Function> */ 3201 /* FT_Face_GetCharVariantIndex */ 3202 /* */ 3203 /* <Description> */ 3204 /* Return the glyph index of a given character code as modified by */ 3205 /* the variation selector. */ 3206 /* */ 3207 /* <Input> */ 3208 /* face :: */ 3209 /* A handle to the source face object. */ 3210 /* */ 3211 /* charcode :: */ 3212 /* The character code point in Unicode. */ 3213 /* */ 3214 /* variantSelector :: */ 3215 /* The Unicode code point of the variation selector. */ 3216 /* */ 3217 /* <Return> */ 3218 /* The glyph index. 0~means either `undefined character code', or */ 3219 /* `undefined selector code', or `no variation selector cmap */ 3220 /* subtable', or `current CharMap is not Unicode'. */ 3221 /* */ 3222 /* <Note> */ 3223 /* If you use FreeType to manipulate the contents of font files */ 3224 /* directly, be aware that the glyph index returned by this function */ 3225 /* doesn't always correspond to the internal indices used within */ 3226 /* the file. This is done to ensure that value~0 always corresponds */ 3227 /* to the `missing glyph'. */ 3228 /* */ 3229 /* This function is only meaningful if */ 3230 /* a) the font has a variation selector cmap sub table, */ 3231 /* and */ 3232 /* b) the current charmap has a Unicode encoding. */ 3233 /* */ 3234 /* <Since> */ 3235 /* 2.3.6 */ 3236 /* */ 3237 FT_EXPORT( FT_UInt ) 3238 FT_Face_GetCharVariantIndex( FT_Face face, 3239 FT_ULong charcode, 3240 FT_ULong variantSelector ); 3241 3242 3243 /*************************************************************************/ 3244 /* */ 3245 /* <Function> */ 3246 /* FT_Face_GetCharVariantIsDefault */ 3247 /* */ 3248 /* <Description> */ 3249 /* Check whether this variant of this Unicode character is the one to */ 3250 /* be found in the `cmap'. */ 3251 /* */ 3252 /* <Input> */ 3253 /* face :: */ 3254 /* A handle to the source face object. */ 3255 /* */ 3256 /* charcode :: */ 3257 /* The character codepoint in Unicode. */ 3258 /* */ 3259 /* variantSelector :: */ 3260 /* The Unicode codepoint of the variation selector. */ 3261 /* */ 3262 /* <Return> */ 3263 /* 1~if found in the standard (Unicode) cmap, 0~if found in the */ 3264 /* variation selector cmap, or -1 if it is not a variant. */ 3265 /* */ 3266 /* <Note> */ 3267 /* This function is only meaningful if the font has a variation */ 3268 /* selector cmap subtable. */ 3269 /* */ 3270 /* <Since> */ 3271 /* 2.3.6 */ 3272 /* */ 3273 FT_EXPORT( FT_Int ) 3274 FT_Face_GetCharVariantIsDefault( FT_Face face, 3275 FT_ULong charcode, 3276 FT_ULong variantSelector ); 3277 3278 3279 /*************************************************************************/ 3280 /* */ 3281 /* <Function> */ 3282 /* FT_Face_GetVariantSelectors */ 3283 /* */ 3284 /* <Description> */ 3285 /* Return a zero-terminated list of Unicode variant selectors found */ 3286 /* in the font. */ 3287 /* */ 3288 /* <Input> */ 3289 /* face :: */ 3290 /* A handle to the source face object. */ 3291 /* */ 3292 /* <Return> */ 3293 /* A pointer to an array of selector code points, or NULL if there is */ 3294 /* no valid variant selector cmap subtable. */ 3295 /* */ 3296 /* <Note> */ 3297 /* The last item in the array is~0; the array is owned by the */ 3298 /* @FT_Face object but can be overwritten or released on the next */ 3299 /* call to a FreeType function. */ 3300 /* */ 3301 /* <Since> */ 3302 /* 2.3.6 */ 3303 /* */ 3304 FT_EXPORT( FT_UInt32* ) 3305 FT_Face_GetVariantSelectors( FT_Face face ); 3306 3307 3308 /*************************************************************************/ 3309 /* */ 3310 /* <Function> */ 3311 /* FT_Face_GetVariantsOfChar */ 3312 /* */ 3313 /* <Description> */ 3314 /* Return a zero-terminated list of Unicode variant selectors found */ 3315 /* for the specified character code. */ 3316 /* */ 3317 /* <Input> */ 3318 /* face :: */ 3319 /* A handle to the source face object. */ 3320 /* */ 3321 /* charcode :: */ 3322 /* The character codepoint in Unicode. */ 3323 /* */ 3324 /* <Return> */ 3325 /* A pointer to an array of variant selector code points which are */ 3326 /* active for the given character, or NULL if the corresponding list */ 3327 /* is empty. */ 3328 /* */ 3329 /* <Note> */ 3330 /* The last item in the array is~0; the array is owned by the */ 3331 /* @FT_Face object but can be overwritten or released on the next */ 3332 /* call to a FreeType function. */ 3333 /* */ 3334 /* <Since> */ 3335 /* 2.3.6 */ 3336 /* */ 3337 FT_EXPORT( FT_UInt32* ) 3338 FT_Face_GetVariantsOfChar( FT_Face face, 3339 FT_ULong charcode ); 3340 3341 3342 /*************************************************************************/ 3343 /* */ 3344 /* <Function> */ 3345 /* FT_Face_GetCharsOfVariant */ 3346 /* */ 3347 /* <Description> */ 3348 /* Return a zero-terminated list of Unicode character codes found for */ 3349 /* the specified variant selector. */ 3350 /* */ 3351 /* <Input> */ 3352 /* face :: */ 3353 /* A handle to the source face object. */ 3354 /* */ 3355 /* variantSelector :: */ 3356 /* The variant selector code point in Unicode. */ 3357 /* */ 3358 /* <Return> */ 3359 /* A list of all the code points which are specified by this selector */ 3360 /* (both default and non-default codes are returned) or NULL if there */ 3361 /* is no valid cmap or the variant selector is invalid. */ 3362 /* */ 3363 /* <Note> */ 3364 /* The last item in the array is~0; the array is owned by the */ 3365 /* @FT_Face object but can be overwritten or released on the next */ 3366 /* call to a FreeType function. */ 3367 /* */ 3368 /* <Since> */ 3369 /* 2.3.6 */ 3370 /* */ 3371 FT_EXPORT( FT_UInt32* ) 3372 FT_Face_GetCharsOfVariant( FT_Face face, 3373 FT_ULong variantSelector ); 3092 3374 3093 3375 … … 3203 3485 /* */ 3204 3486 /* <Note> */ 3205 /* The optimization for FT_DivFix() is simple: If (a <<16) fits in */3206 /* 32 3487 /* The optimization for FT_DivFix() is simple: If (a~<<~16) fits in */ 3488 /* 32~bits, then the division is computed directly. Otherwise, we */ 3207 3489 /* use a specialized version of @FT_MulDiv. */ 3208 3490 /* */ … … 3330 3612 #define FREETYPE_MAJOR 2 3331 3613 #define FREETYPE_MINOR 3 3332 #define FREETYPE_PATCH 53614 #define FREETYPE_PATCH 7 3333 3615 3334 3616 … … 3387 3669 /* */ 3388 3670 /* <Return> */ 3389 /* 1 3390 /* opcodes, 0 3671 /* 1~if this is a TrueType font that uses one of the patented */ 3672 /* opcodes, 0~otherwise. */ 3391 3673 /* */ 3392 3674 /* <Since> */ -
trunk/poppler/freetype2/include/freetype/ftbbox.h
r209 r251 5 5 /* FreeType exact bbox computation (specification). */ 6 6 /* */ 7 /* Copyright 1996-2001, 2003 by*/7 /* Copyright 1996-2001, 2003, 2007 by */ 8 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 9 /* */ … … 59 59 /* */ 60 60 /* <Description> */ 61 /* Compute s the exact bounding box of an outline. This is slower*/61 /* Compute the exact bounding box of an outline. This is slower */ 62 62 /* than computing the control box. However, it uses an advanced */ 63 63 /* algorithm which returns _very_ quickly when the two boxes */ 64 /* coincide. Otherwise, the outline Bézier arcs are walked over to*/64 /* coincide. Otherwise, the outline Bézier arcs are traversed to */ 65 65 /* extract their extrema. */ 66 66 /* */ … … 72 72 /* */ 73 73 /* <Return> */ 74 /* FreeType error code. 0 74 /* FreeType error code. 0~means success. */ 75 75 /* */ 76 76 FT_EXPORT( FT_Error ) -
trunk/poppler/freetype2/include/freetype/ftbdf.h
r209 r251 39 39 /* */ 40 40 /* <Title> */ 41 /* BDF Files*/41 /* BDF and PCF Files */ 42 42 /* */ 43 43 /* <Abstract> */ 44 /* BDF specific API.*/44 /* BDF and PCF specific API. */ 45 45 /* */ 46 46 /* <Description> */ 47 /* This section contains the declaration of BDF specific functions. */ 47 /* This section contains the declaration of functions specific to BDF */ 48 /* and PCF fonts. */ 48 49 /* */ 49 50 /*************************************************************************/ 50 51 51 52 52 /**********************************************************************53 *54 * @enum:55 * FT_PropertyType56 *57 * @description:58 * A list of BDF property types.59 *60 * @values:61 * BDF_PROPERTY_TYPE_NONE ::62 * Value0 is used to indicate a missing property.63 *64 * BDF_PROPERTY_TYPE_ATOM ::65 * Property is a string atom.66 *67 * BDF_PROPERTY_TYPE_INTEGER ::68 * Property is a 32-bit signed integer.69 *70 * BDF_PROPERTY_TYPE_CARDINAL ::71 * Property is a 32-bit unsigned integer.72 */53 /********************************************************************** 54 * 55 * @enum: 56 * FT_PropertyType 57 * 58 * @description: 59 * A list of BDF property types. 60 * 61 * @values: 62 * BDF_PROPERTY_TYPE_NONE :: 63 * Value~0 is used to indicate a missing property. 64 * 65 * BDF_PROPERTY_TYPE_ATOM :: 66 * Property is a string atom. 67 * 68 * BDF_PROPERTY_TYPE_INTEGER :: 69 * Property is a 32-bit signed integer. 70 * 71 * BDF_PROPERTY_TYPE_CARDINAL :: 72 * Property is a 32-bit unsigned integer. 73 */ 73 74 typedef enum BDF_PropertyType_ 74 75 { … … 81 82 82 83 83 /**********************************************************************84 *85 * @type:86 * BDF_Property87 *88 * @description:89 * A handle to a @BDF_PropertyRec structure to model a given90 * BDF/PCF property.91 */84 /********************************************************************** 85 * 86 * @type: 87 * BDF_Property 88 * 89 * @description: 90 * A handle to a @BDF_PropertyRec structure to model a given 91 * BDF/PCF property. 92 */ 92 93 typedef struct BDF_PropertyRec_* BDF_Property; 93 94 … … 133 134 * 134 135 * @description: 135 * Retrieve sa BDF font character set identity, according to136 * Retrieve a BDF font character set identity, according to 136 137 * the BDF specification. 137 138 * … … 142 143 * @output: 143 144 * acharset_encoding :: 144 * Charset encoding, as a C 145 * Charset encoding, as a C~string, owned by the face. 145 146 * 146 147 * acharset_registry :: 147 * Charset registry, as a C 148 * Charset registry, as a C~string, owned by the face. 148 149 * 149 150 * @return: 150 * FreeType error code. 0 151 * FreeType error code. 0~means success. 151 152 * 152 153 * @note: … … 165 166 * 166 167 * @description: 167 * Retrieve sa BDF property from a BDF or PCF font file.168 * Retrieve a BDF property from a BDF or PCF font file. 168 169 * 169 170 * @input: … … 176 177 * 177 178 * @return: 178 * FreeType error code. 0 179 * FreeType error code. 0~means success. 179 180 * 180 181 * @note: -
trunk/poppler/freetype2/include/freetype/ftbitmap.h
r209 r251 73 73 /* */ 74 74 /* <Description> */ 75 /* Cop ies an bitmap into another one.*/75 /* Copy a bitmap into another one. */ 76 76 /* */ 77 77 /* <Input> */ … … 84 84 /* */ 85 85 /* <Return> */ 86 /* FreeType error code. 0 86 /* FreeType error code. 0~means success. */ 87 87 /* */ 88 88 FT_EXPORT( FT_Error ) … … 115 115 /* */ 116 116 /* <Return> */ 117 /* FreeType error code. 0 117 /* FreeType error code. 0~means success. */ 118 118 /* */ 119 119 /* <Note> */ 120 120 /* The current implementation restricts `xStrength' to be less than */ 121 /* or equal to 121 /* or equal to~8 if bitmap is of pixel_mode @FT_PIXEL_MODE_MONO. */ 122 122 /* */ 123 123 /* If you want to embolden the bitmap owned by a @FT_GlyphSlotRec, */ … … 153 153 /* */ 154 154 /* <Return> */ 155 /* FreeType error code. 0 155 /* FreeType error code. 0~means success. */ 156 156 /* */ 157 157 /* <Note> */ … … 185 185 /* */ 186 186 /* <Return> */ 187 /* FreeType error code. 0 187 /* FreeType error code. 0~means success. */ 188 188 /* */ 189 189 /* <Note> */ -
trunk/poppler/freetype2/include/freetype/ftcache.h
r209 r251 5 5 /* FreeType Cache subsystem (specification). */ 6 6 /* */ 7 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007 by*/7 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by */ 8 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 9 /* */ … … 37 37 * 38 38 * <Abstract> 39 * How to cache face, size, and glyph data with FreeType 39 * How to cache face, size, and glyph data with FreeType~2. 40 40 * 41 41 * <Description> 42 * This section describes the FreeType 42 * This section describes the FreeType~2 cache sub-system, which is used 43 43 * to limit the number of concurrently opened @FT_Face and @FT_Size 44 44 * objects, as well as caching information like character maps and glyph … … 166 166 * memory leaks and crashes. 167 167 */ 168 typedef struct FTC_FaceIDRec_*FTC_FaceID;168 typedef FT_Pointer FTC_FaceID; 169 169 170 170 … … 194 194 * 195 195 * <Return> 196 * FreeType error code. 0 196 * FreeType error code. 0~means success. 197 197 * 198 198 * <Note> … … 261 261 /* <Description> */ 262 262 /* An opaque handle to a cache node object. Each cache node is */ 263 /* reference-counted. A node with a count of 263 /* reference-counted. A node with a count of~0 might be flushed */ 264 264 /* out of a full cache whenever a lookup request is performed. */ 265 265 /* */ … … 280 280 /* */ 281 281 /* <Description> */ 282 /* Create s a new cache manager.*/282 /* Create a new cache manager. */ 283 283 /* */ 284 284 /* <Input> */ … … 286 286 /* */ 287 287 /* max_faces :: Maximum number of opened @FT_Face objects managed by */ 288 /* this cache instance. Use 288 /* this cache instance. Use~0 for defaults. */ 289 289 /* */ 290 290 /* max_sizes :: Maximum number of opened @FT_Size objects managed by */ 291 /* this cache instance. Use 291 /* this cache instance. Use~0 for defaults. */ 292 292 /* */ 293 293 /* max_bytes :: Maximum number of bytes to use for cached data nodes. */ 294 /* Use 294 /* Use~0 for defaults. Note that this value does not */ 295 295 /* account for managed @FT_Face and @FT_Size objects. */ 296 296 /* */ … … 302 302 /* */ 303 303 /* <Output> */ 304 /* amanager :: A handle to a new manager object. 0 304 /* amanager :: A handle to a new manager object. 0~in case of */ 305 305 /* failure. */ 306 306 /* */ 307 307 /* <Return> */ 308 /* FreeType error code. 0 308 /* FreeType error code. 0~means success. */ 309 309 /* */ 310 310 FT_EXPORT( FT_Error ) … … 324 324 /* */ 325 325 /* <Description> */ 326 /* Empt ies a given cache manager. This simply gets rid of all the*/326 /* Empty a given cache manager. This simply gets rid of all the */ 327 327 /* currently cached @FT_Face and @FT_Size objects within the manager. */ 328 328 /* */ … … 340 340 /* */ 341 341 /* <Description> */ 342 /* Destroy s a given manager after emptying it.*/342 /* Destroy a given manager after emptying it. */ 343 343 /* */ 344 344 /* <Input> */ … … 355 355 /* */ 356 356 /* <Description> */ 357 /* Retrieve s the @FT_Face object that corresponds to a given face ID*/357 /* Retrieve the @FT_Face object that corresponds to a given face ID */ 358 358 /* through a cache manager. */ 359 359 /* */ … … 367 367 /* */ 368 368 /* <Return> */ 369 /* FreeType error code. 0 369 /* FreeType error code. 0~means success. */ 370 370 /* */ 371 371 /* <Note> */ … … 416 416 /* Otherwise, they are expressed as 1/64th of points. */ 417 417 /* */ 418 /* x_res :: Only used when `pixel' is value 418 /* x_res :: Only used when `pixel' is value~0 to indicate the */ 419 419 /* horizontal resolution in dpi. */ 420 420 /* */ 421 /* y_res :: Only used when `pixel' is value 421 /* y_res :: Only used when `pixel' is value~0 to indicate the */ 422 422 /* vertical resolution in dpi. */ 423 423 /* */ … … 435 435 FT_UInt y_res; 436 436 437 } FTC_ScalerRec, *FTC_Scaler; 437 } FTC_ScalerRec; 438 439 440 /*************************************************************************/ 441 /* */ 442 /* <Struct> */ 443 /* FTC_Scaler */ 444 /* */ 445 /* <Description> */ 446 /* A handle to an @FTC_ScalerRec structure. */ 447 /* */ 448 typedef struct FTC_ScalerRec_* FTC_Scaler; 438 449 439 450 … … 456 467 /* */ 457 468 /* <Return> */ 458 /* FreeType error code. 0 469 /* FreeType error code. 0~means success. */ 459 470 /* */ 460 471 /* <Note> */ … … 570 581 * 571 582 * @return: 572 * FreeType error code. 0 583 * FreeType error code. 0~means success. 573 584 * 574 585 * @note: … … 605 616 * 606 617 * @return: 607 * Glyph index. 0 618 * Glyph index. 0~means `no glyph'. 608 619 * 609 620 */ … … 711 722 /* */ 712 723 /* <Description> */ 713 /* Create s a new glyph image cache.*/724 /* Create a new glyph image cache. */ 714 725 /* */ 715 726 /* <Input> */ … … 720 731 /* */ 721 732 /* <Return> */ 722 /* FreeType error code. 0 733 /* FreeType error code. 0~means success. */ 723 734 /* */ 724 735 FT_EXPORT( FT_Error ) … … 733 744 /* */ 734 745 /* <Description> */ 735 /* Retrieve s a given glyph image from a glyph image cache.*/746 /* Retrieve a given glyph image from a glyph image cache. */ 736 747 /* */ 737 748 /* <Input> */ … … 743 754 /* */ 744 755 /* <Output> */ 745 /* aglyph :: The corresponding @FT_Glyph object. 0 756 /* aglyph :: The corresponding @FT_Glyph object. 0~in case of */ 746 757 /* failure. */ 747 758 /* */ … … 751 762 /* */ 752 763 /* <Return> */ 753 /* FreeType error code. 0 764 /* FreeType error code. 0~means success. */ 754 765 /* */ 755 766 /* <Note> */ … … 796 807 /* */ 797 808 /* <Output> */ 798 /* aglyph :: The corresponding @FT_Glyph object. 0 809 /* aglyph :: The corresponding @FT_Glyph object. 0~in case of */ 799 810 /* failure. */ 800 811 /* */ … … 804 815 /* */ 805 816 /* <Return> */ 806 /* FreeType error code. 0 817 /* FreeType error code. 0~means success. */ 807 818 /* */ 808 819 /* <Note> */ … … 863 874 /* baseline) to the upper bitmap border (a.k.a. `top */ 864 875 /* side bearing'). The distance is positive for upwards */ 865 /* Ycoordinates. */876 /* y~coordinates. */ 866 877 /* */ 867 878 /* format :: The format of the glyph bitmap (monochrome or gray). */ 868 879 /* */ 869 /* max_grays :: Maximum gray level value (in the range 1 to 880 /* max_grays :: Maximum gray level value (in the range 1 to~255). */ 870 881 /* */ 871 882 /* pitch :: The number of bytes per bitmap line. May be positive */ … … 916 927 /* */ 917 928 /* <Description> */ 918 /* Create s a new cache to store small glyph bitmaps.*/929 /* Create a new cache to store small glyph bitmaps. */ 919 930 /* */ 920 931 /* <Input> */ … … 925 936 /* */ 926 937 /* <Return> */ 927 /* FreeType error code. 0 938 /* FreeType error code. 0~means success. */ 928 939 /* */ 929 940 FT_EXPORT( FT_Error ) … … 938 949 /* */ 939 950 /* <Description> */ 940 /* Look s up a given small glyph bitmap in a given sbit cache and*/951 /* Look up a given small glyph bitmap in a given sbit cache and */ 941 952 /* `lock' it to prevent its flushing from the cache until needed. */ 942 953 /* */ … … 956 967 /* */ 957 968 /* <Return> */ 958 /* FreeType error code. 0 969 /* FreeType error code. 0~means success. */ 959 970 /* */ 960 971 /* <Note> */ … … 964 975 /* treat them as persistent data. */ 965 976 /* */ 966 /* The descriptor's `buffer' field is set to 977 /* The descriptor's `buffer' field is set to~0 to indicate a missing */ 967 978 /* glyph bitmap. */ 968 979 /* */ … … 1011 1022 /* */ 1012 1023 /* <Return> */ 1013 /* FreeType error code. 0 1024 /* FreeType error code. 0~means success. */ 1014 1025 /* */ 1015 1026 /* <Note> */ … … 1019 1030 /* treat them as persistent data. */ 1020 1031 /* */ 1021 /* The descriptor's `buffer' field is set to 1032 /* The descriptor's `buffer' field is set to~0 to indicate a missing */ 1022 1033 /* glyph bitmap. */ 1023 1034 /* */ -
trunk/poppler/freetype2/include/freetype/ftchapters.h
r209 r251 33 33 /* basic_types */ 34 34 /* base_interface */ 35 /* glyph_variants */ 35 36 /* glyph_management */ 36 37 /* mac_specific */ … … 55 56 /* sfnt_names */ 56 57 /* bdf_fonts */ 58 /* cid_fonts */ 57 59 /* pfr_fonts */ 58 60 /* winfnt_fonts */ -
trunk/poppler/freetype2/include/freetype/ftgasp.h
r209 r251 5 5 /* Access of TrueType's `gasp' table (specification). */ 6 6 /* */ 7 /* Copyright 2007 by*/7 /* Copyright 2007, 2008 by */ 8 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 9 /* */ … … 32 32 * 33 33 * @abstract: 34 * Retrieving TrueType `gasp' table entries 34 * Retrieving TrueType `gasp' table entries. 35 35 * 36 36 * @description: 37 37 * The function @FT_Get_Gasp can be used to query a TrueType or OpenType 38 * font for specific entries in their`gasp' table, if any. This is38 * font for specific entries in its `gasp' table, if any. This is 39 39 * mainly useful when implementing native TrueType hinting with the 40 40 * bytecode interpreter to duplicate the Windows text rendering results. … … 96 96 * 97 97 * @return: 98 * Bit flags (see @FT_GASP_XXX), or @FT_GASP_NO_TABLE i sthere is no98 * Bit flags (see @FT_GASP_XXX), or @FT_GASP_NO_TABLE if there is no 99 99 * `gasp' table in the face. 100 100 * -
trunk/poppler/freetype2/include/freetype/ftglyph.h
r209 r251 146 146 /* top :: The top-side bearing, i.e., the vertical distance from */ 147 147 /* the current pen position to the top border of the glyph */ 148 /* bitmap. This distance is positive for upwards -y! */148 /* bitmap. This distance is positive for upwards~y! */ 149 149 /* */ 150 150 /* bitmap :: A descriptor for the bitmap. */ … … 229 229 /* */ 230 230 /* <Return> */ 231 /* FreeType error code. 0 231 /* FreeType error code. 0~means success. */ 232 232 /* */ 233 233 FT_EXPORT( FT_Error ) … … 249 249 /* */ 250 250 /* <Output> */ 251 /* target :: A handle to the target glyph object. 0 251 /* target :: A handle to the target glyph object. 0~in case of */ 252 252 /* error. */ 253 253 /* */ 254 254 /* <Return> */ 255 /* FreeType error code. 0 255 /* FreeType error code. 0~means success. */ 256 256 /* */ 257 257 FT_EXPORT( FT_Error ) … … 266 266 /* */ 267 267 /* <Description> */ 268 /* Transform s a glyph image if its format is scalable.*/268 /* Transform a glyph image if its format is scalable. */ 269 269 /* */ 270 270 /* <InOut> */ … … 376 376 /* */ 377 377 /* <Note> */ 378 /* Coordinates are relative to the glyph origin, using the Y-upwards */378 /* Coordinates are relative to the glyph origin, using the y~upwards */ 379 379 /* convention. */ 380 380 /* */ … … 422 422 /* */ 423 423 /* <Description> */ 424 /* Convert s a given glyph object to a bitmap glyph object.*/424 /* Convert a given glyph object to a bitmap glyph object. */ 425 425 /* */ 426 426 /* <InOut> */ … … 432 432 /* */ 433 433 /* origin :: A pointer to a vector used to translate the glyph */ 434 /* image before rendering. Can be 434 /* image before rendering. Can be~0 (if no */ 435 435 /* translation). The origin is expressed in */ 436 436 /* 26.6 pixels. */ … … 441 441 /* */ 442 442 /* <Return> */ 443 /* FreeType error code. 0 443 /* FreeType error code. 0~means success. */ 444 444 /* */ 445 445 /* <Note> */ … … 498 498 /* */ 499 499 /* <Description> */ 500 /* Destroy s a given glyph.*/500 /* Destroy a given glyph. */ 501 501 /* */ 502 502 /* <Input> */ … … 525 525 /* */ 526 526 /* <Description> */ 527 /* Perform s the matrix operation `b = a*b'.*/527 /* Perform the matrix operation `b = a*b'. */ 528 528 /* */ 529 529 /* <Input> */ … … 538 538 FT_EXPORT( void ) 539 539 FT_Matrix_Multiply( const FT_Matrix* a, 540 FT_Matrix* b );540 FT_Matrix* b ); 541 541 542 542 … … 547 547 /* */ 548 548 /* <Description> */ 549 /* Invert s a 2x2 matrix. Returns an error if it can't be inverted.*/549 /* Invert a 2x2 matrix. Return an error if it can't be inverted. */ 550 550 /* */ 551 551 /* <InOut> */ … … 554 554 /* */ 555 555 /* <Return> */ 556 /* FreeType error code. 0 556 /* FreeType error code. 0~means success. */ 557 557 /* */ 558 558 FT_EXPORT( FT_Error ) -
trunk/poppler/freetype2/include/freetype/ftgxval.h
r209 r251 203 203 * 204 204 * @return: 205 * FreeType error code. 0 205 * FreeType error code. 0~means success. 206 206 * 207 207 * @note: … … 286 286 * 287 287 * @description: 288 * Validate classic (16 bit format) kern table to assure that the offsets288 * Validate classic (16-bit format) kern table to assure that the offsets 289 289 * and indices are valid. The idea is that a higher-level library which 290 290 * actually does the text layout can access those tables without error … … 292 292 * 293 293 * The `kern' table validator in @FT_TrueTypeGX_Validate deals with both 294 * the new 32 bit format and the classic 16bit format, while295 * FT_ClassicKern_Validate only supports the classic 16 bit format.294 * the new 32-bit format and the classic 16-bit format, while 295 * FT_ClassicKern_Validate only supports the classic 16-bit format. 296 296 * 297 297 * @input: … … 308 308 * 309 309 * @return: 310 * FreeType error code. 0 310 * FreeType error code. 0~means success. 311 311 * 312 312 * @note: -
trunk/poppler/freetype2/include/freetype/ftgzip.h
r209 r251 67 67 * 68 68 * @return: 69 * FreeType error code. 0 69 * FreeType error code. 0~means success. 70 70 * 71 71 * @note: -
trunk/poppler/freetype2/include/freetype/ftimage.h
r209 r251 6 6 /* (specification). */ 7 7 /* */ 8 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007 by*/8 /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by */ 9 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 10 10 /* */ … … 29 29 30 30 31 /* _STANDALONE_ is from ftgrays.c */31 /* _STANDALONE_ is from ftgrays.c */ 32 32 #ifndef _STANDALONE_ 33 33 #include <ft2build.h> … … 54 54 /* The type FT_Pos is a 32-bit integer used to store vectorial */ 55 55 /* coordinates. Depending on the context, these can represent */ 56 /* distances in integer font units, or 16 ,16, or 26.6 fixed float */56 /* distances in integer font units, or 16.16, or 26.6 fixed float */ 57 57 /* pixel coordinates. */ 58 58 /* */ … … 120 120 /* <Values> */ 121 121 /* FT_PIXEL_MODE_NONE :: */ 122 /* Value 122 /* Value~0 is reserved. */ 123 123 /* */ 124 124 /* FT_PIXEL_MODE_MONO :: */ 125 /* A monochrome bitmap, using 1 125 /* A monochrome bitmap, using 1~bit per pixel. Note that pixels */ 126 126 /* are stored in most-significant order (MSB), which means that */ 127 127 /* the left-most pixel in a byte has value 128. */ … … 130 130 /* An 8-bit bitmap, generally used to represent anti-aliased glyph */ 131 131 /* images. Each pixel is stored in one byte. Note that the number */ 132 /* of value `gray' levels is stored in the `num_ bytes' field of */132 /* of value `gray' levels is stored in the `num_grays' field of */ 133 133 /* the @FT_Bitmap structure (it generally is 256). */ 134 134 /* */ … … 207 207 /* used with ft_pixel_mode_pal4 and ft_pixel_mode_pal8. */ 208 208 /* */ 209 /* < Fields> */210 /* ft_palette_mode_rgb :: The palette is an array of 3-byte s RGB*/209 /* <Values> */ 210 /* ft_palette_mode_rgb :: The palette is an array of 3-byte RGB */ 211 211 /* records. */ 212 212 /* */ 213 /* ft_palette_mode_rgba :: The palette is an array of 4-byte s RGBA*/213 /* ft_palette_mode_rgba :: The palette is an array of 4-byte RGBA */ 214 214 /* records. */ 215 215 /* */ … … 223 223 ft_palette_mode_rgba, 224 224 225 ft_palett te_mode_max /* do not remove */225 ft_palette_mode_max /* do not remove */ 226 226 227 227 } FT_Palette_Mode; … … 318 318 /* */ 319 319 /* tags :: A pointer to an array of `n_points' chars, giving */ 320 /* each outline point's type. If bit 320 /* each outline point's type. If bit~0 is unset, the */ 321 321 /* point is `off' the curve, i.e., a Bézier control */ 322 322 /* point, while it is `on' when set. */ 323 323 /* */ 324 /* Bit 324 /* Bit~1 is meaningful for `off' points only. If set, */ 325 325 /* it indicates a third-order Bézier arc control point; */ 326 326 /* and a second-order control point if unset. */ … … 353 353 /* */ 354 354 /* <Enum> */ 355 /* FT_OUTLINE_FLAGS*/355 /* FT_OUTLINE_FLAGS */ 356 356 /* */ 357 357 /* <Description> */ … … 360 360 /* */ 361 361 /* <Values> */ 362 /* FT_OUTLINE_NONE :: Value 0 is reserved. */ 363 /* */ 364 /* FT_OUTLINE_OWNER :: If set, this flag indicates that the */ 365 /* outline's field arrays (i.e., */ 366 /* `points', `flags' & `contours') are */ 367 /* `owned' by the outline object, and */ 368 /* should thus be freed when it is */ 369 /* destroyed. */ 370 /* */ 371 /* FT_OUTLINE_EVEN_ODD_FILL :: By default, outlines are filled using */ 372 /* the non-zero winding rule. If set to */ 373 /* 1, the outline will be filled using */ 374 /* the even-odd fill rule (only works */ 375 /* with the smooth raster). */ 376 /* */ 377 /* FT_OUTLINE_REVERSE_FILL :: By default, outside contours of an */ 378 /* outline are oriented in clock-wise */ 379 /* direction, as defined in the TrueType */ 380 /* specification. This flag is set if */ 381 /* the outline uses the opposite */ 382 /* direction (typically for Type 1 */ 383 /* fonts). This flag is ignored by the */ 384 /* scan-converter. */ 385 /* */ 386 /* FT_OUTLINE_IGNORE_DROPOUTS :: By default, the scan converter will */ 387 /* try to detect drop-outs in an outline */ 388 /* and correct the glyph bitmap to */ 389 /* ensure consistent shape continuity. */ 390 /* If set, this flag hints the scan-line */ 391 /* converter to ignore such cases. */ 392 /* */ 393 /* FT_OUTLINE_HIGH_PRECISION :: This flag indicates that the */ 394 /* scan-line converter should try to */ 395 /* convert this outline to bitmaps with */ 396 /* the highest possible quality. It is */ 397 /* typically set for small character */ 398 /* sizes. Note that this is only a */ 399 /* hint, that might be completely */ 400 /* ignored by a given scan-converter. */ 401 /* */ 402 /* FT_OUTLINE_SINGLE_PASS :: This flag is set to force a given */ 403 /* scan-converter to only use a single */ 404 /* pass over the outline to render a */ 405 /* bitmap glyph image. Normally, it is */ 406 /* set for very large character sizes. */ 407 /* It is only a hint, that might be */ 408 /* completely ignored by a given */ 409 /* scan-converter. */ 362 /* FT_OUTLINE_NONE :: */ 363 /* Value~0 is reserved. */ 364 /* */ 365 /* FT_OUTLINE_OWNER :: */ 366 /* If set, this flag indicates that the outline's field arrays */ 367 /* (i.e., `points', `flags', and `contours') are `owned' by the */ 368 /* outline object, and should thus be freed when it is destroyed. */ 369 /* */ 370 /* FT_OUTLINE_EVEN_ODD_FILL :: */ 371 /* By default, outlines are filled using the non-zero winding rule. */ 372 /* If set to 1, the outline will be filled using the even-odd fill */ 373 /* rule (only works with the smooth raster). */ 374 /* */ 375 /* FT_OUTLINE_REVERSE_FILL :: */ 376 /* By default, outside contours of an outline are oriented in */ 377 /* clock-wise direction, as defined in the TrueType specification. */ 378 /* This flag is set if the outline uses the opposite direction */ 379 /* (typically for Type~1 fonts). This flag is ignored by the scan */ 380 /* converter. */ 381 /* */ 382 /* FT_OUTLINE_IGNORE_DROPOUTS :: */ 383 /* By default, the scan converter will try to detect drop-outs in */ 384 /* an outline and correct the glyph bitmap to ensure consistent */ 385 /* shape continuity. If set, this flag hints the scan-line */ 386 /* converter to ignore such cases. */ 387 /* */ 388 /* FT_OUTLINE_SMART_DROPOUTS :: */ 389 /* Select smart dropout control. If unset, use simple dropout */ 390 /* control. Ignored if @FT_OUTLINE_IGNORE_DROPOUTS is set. */ 391 /* */ 392 /* FT_OUTLINE_INCLUDE_STUBS :: */ 393 /* If set, turn pixels on for `stubs', otherwise exclude them. */ 394 /* Ignored if @FT_OUTLINE_IGNORE_DROPOUTS is set. */ 395 /* */ 396 /* FT_OUTLINE_HIGH_PRECISION :: */ 397 /* This flag indicates that the scan-line converter should try to */ 398 /* convert this outline to bitmaps with the highest possible */ 399 /* quality. It is typically set for small character sizes. Note */ 400 /* that this is only a hint that might be completely ignored by a */ 401 /* given scan-converter. */ 402 /* */ 403 /* FT_OUTLINE_SINGLE_PASS :: */ 404 /* This flag is set to force a given scan-converter to only use a */ 405 /* single pass over the outline to render a bitmap glyph image. */ 406 /* Normally, it is set for very large character sizes. It is only */ 407 /* a hint that might be completely ignored by a given */ 408 /* scan-converter. */ 409 /* */ 410 /* <Note> */ 411 /* Please refer to the description of the `SCANTYPE' instruction in */ 412 /* the OpenType specification (in file `ttinst1.doc') how simple */ 413 /* drop-outs, smart drop-outs, and stubs are defined. */ 410 414 /* */ 411 415 #define FT_OUTLINE_NONE 0x0 … … 414 418 #define FT_OUTLINE_REVERSE_FILL 0x4 415 419 #define FT_OUTLINE_IGNORE_DROPOUTS 0x8 420 #define FT_OUTLINE_SMART_DROPOUTS 0x10 421 #define FT_OUTLINE_INCLUDE_STUBS 0x20 416 422 417 423 #define FT_OUTLINE_HIGH_PRECISION 0x100 … … 459 465 FT_CURVE_TAG_TOUCH_Y ) 460 466 461 #define FT_Curve_Tag_On FT_CURVE_TAG_ON 462 #define FT_Curve_Tag_Conic FT_CURVE_TAG_CONIC 463 #define FT_Curve_Tag_Cubic FT_CURVE_TAG_CUBIC 464 #define FT_Curve_Tag_Touch_X FT_CURVE_TAG_TOUCH_X 465 #define FT_Curve_Tag_Touch_Y FT_CURVE_TAG_TOUCH_Y 467 #define FT_Curve_Tag_On FT_CURVE_TAG_ON 468 #define FT_Curve_Tag_Conic FT_CURVE_TAG_CONIC 469 #define FT_Curve_Tag_Cubic FT_CURVE_TAG_CUBIC 470 #define FT_Curve_Tag_Touch_X FT_CURVE_TAG_TOUCH_X 471 #define FT_Curve_Tag_Touch_Y FT_CURVE_TAG_TOUCH_Y 472 466 473 467 474 /*************************************************************************/ … … 483 490 /* */ 484 491 /* <Return> */ 485 /* Error code. 0 492 /* Error code. 0~means success. */ 486 493 /* */ 487 494 typedef int … … 491 498 #define FT_Outline_MoveTo_Func FT_Outline_MoveToFunc 492 499 500 493 501 /*************************************************************************/ 494 502 /* */ … … 509 517 /* */ 510 518 /* <Return> */ 511 /* Error code. 0 519 /* Error code. 0~means success. */ 512 520 /* */ 513 521 typedef int … … 515 523 void* user ); 516 524 517 #define FT_Outline_LineTo_Func FT_Outline_LineToFunc 525 #define FT_Outline_LineTo_Func FT_Outline_LineToFunc 526 518 527 519 528 /*************************************************************************/ … … 539 548 /* */ 540 549 /* <Return> */ 541 /* Error code. 0 550 /* Error code. 0~means success. */ 542 551 /* */ 543 552 typedef int … … 546 555 void* user ); 547 556 548 #define FT_Outline_ConicTo_Func FT_Outline_ConicToFunc 557 #define FT_Outline_ConicTo_Func FT_Outline_ConicToFunc 558 549 559 550 560 /*************************************************************************/ … … 570 580 /* */ 571 581 /* <Return> */ 572 /* Error code. 0 582 /* Error code. 0~means success. */ 573 583 /* */ 574 584 typedef int … … 578 588 void* user ); 579 589 580 #define 590 #define FT_Outline_CubicTo_Func FT_Outline_CubicToFunc 581 591 582 592 … … 616 626 /* } */ 617 627 /* */ 618 /* Set the value of `shift' and `delta' to 628 /* Set the value of `shift' and `delta' to~0 to get the original */ 619 629 /* point coordinates. */ 620 630 /* */ … … 649 659 /* */ 650 660 /* <Note> */ 651 /* Since many 16 bit compilers don't like 32bit enumerations, you*/661 /* Since many 16-bit compilers don't like 32-bit enumerations, you */ 652 662 /* should redefine this macro in case of problems to something like */ 653 663 /* this: */ … … 681 691 /* <Values> */ 682 692 /* FT_GLYPH_FORMAT_NONE :: */ 683 /* The value 693 /* The value~0 is reserved. */ 684 694 /* */ 685 695 /* FT_GLYPH_FORMAT_COMPOSITE :: */ … … 701 711 /* FT_GLYPH_FORMAT_PLOTTER :: */ 702 712 /* The glyph image is a vectorial path with no inside and outside */ 703 /* contours. Some Type 713 /* contours. Some Type~1 fonts, like those in the Hershey family, */ 704 714 /* contain glyphs in this format. These are described as */ 705 715 /* @FT_Outline, but FreeType isn't currently capable of rendering */ … … 813 823 /* <Note> */ 814 824 /* This structure is used by the span drawing callback type named */ 815 /* @FT_SpanFunc which takes the y -coordinate of the span as a */825 /* @FT_SpanFunc which takes the y~coordinate of the span as a */ 816 826 /* a parameter. */ 817 827 /* */ 818 /* The coverage value is always between 0 and 255. */ 828 /* The coverage value is always between 0 and 255. If you want less */ 829 /* gray values, the callback function has to reduce them. */ 819 830 /* */ 820 831 typedef struct FT_Span_ … … 838 849 /* */ 839 850 /* <Input> */ 840 /* y :: The scanline's y -coordinate. */851 /* y :: The scanline's y~coordinate. */ 841 852 /* */ 842 853 /* count :: The number of spans to draw on this scanline. */ … … 855 866 /* Note that the `count' field cannot be greater than a fixed value */ 856 867 /* defined by the `FT_MAX_GRAY_SPANS' configuration macro in */ 857 /* `ftoption.h'. By default, this value is set to 858 /* that if there are more than 32 868 /* `ftoption.h'. By default, this value is set to~32, which means */ 869 /* that if there are more than 32~spans on a given scanline, the */ 859 870 /* callback is called several times with the same `y' parameter in */ 860 871 /* order to draw all callbacks. */ … … 869 880 void* user ); 870 881 871 #define FT_Raster_Span_Func 882 #define FT_Raster_Span_Func FT_SpanFunc 872 883 873 884 … … 886 897 /* */ 887 898 /* <Input> */ 888 /* y :: The pixel's y -coordinate. */889 /* */ 890 /* x :: The pixel's x -coordinate. */899 /* y :: The pixel's y~coordinate. */ 900 /* */ 901 /* x :: The pixel's x~coordinate. */ 891 902 /* */ 892 903 /* user :: User-supplied data that is passed to the callback. */ 893 904 /* */ 894 905 /* <Return> */ 895 /* 1 if the pixel is `set', 0otherwise. */906 /* 1~if the pixel is `set', 0~otherwise. */ 896 907 /* */ 897 908 typedef int … … 914 925 /* */ 915 926 /* <Input> */ 916 /* y :: The pixel's y -coordinate. */917 /* */ 918 /* x :: The pixel's x -coordinate. */927 /* y :: The pixel's y~coordinate. */ 928 /* */ 929 /* x :: The pixel's x~coordinate. */ 919 930 /* */ 920 931 /* user :: User-supplied data that is passed to the callback. */ 921 932 /* */ 922 933 /* <Return> */ 923 /* 1 if the pixel is `set', 0otherwise. */934 /* 1~if the pixel is `set', 0~otherwise. */ 924 935 /* */ 925 936 typedef void … … 1061 1072 /* */ 1062 1073 /* <Return> */ 1063 /* Error code. 0 1074 /* Error code. 0~means success. */ 1064 1075 /* */ 1065 1076 /* <Note> */ … … 1074 1085 FT_Raster* raster ); 1075 1086 1076 #define FT_Raster_New_Func FT_Raster_NewFunc 1087 #define FT_Raster_New_Func FT_Raster_NewFunc 1088 1077 1089 1078 1090 /*************************************************************************/ … … 1090 1102 (*FT_Raster_DoneFunc)( FT_Raster raster ); 1091 1103 1092 #define FT_Raster_Done_Func FT_Raster_DoneFunc 1104 #define FT_Raster_Done_Func FT_Raster_DoneFunc 1105 1093 1106 1094 1107 /*************************************************************************/ … … 1124 1137 unsigned long pool_size ); 1125 1138 1126 #define FT_Raster_Reset_Func FT_Raster_ResetFunc 1139 #define FT_Raster_Reset_Func FT_Raster_ResetFunc 1140 1127 1141 1128 1142 /*************************************************************************/ … … 1149 1163 void* args ); 1150 1164 1151 #define FT_Raster_Set_Mode_Func FT_Raster_SetModeFunc 1165 #define FT_Raster_Set_Mode_Func FT_Raster_SetModeFunc 1166 1152 1167 1153 1168 /*************************************************************************/ … … 1157 1172 /* */ 1158 1173 /* <Description> */ 1159 /* Invokesa given raster to scan-convert a given glyph image into a */1160 /* target bitmap.*/1174 /* Invoke a given raster to scan-convert a given glyph image into a */ 1175 /* target bitmap. */ 1161 1176 /* */ 1162 1177 /* <Input> */ … … 1167 1182 /* */ 1168 1183 /* <Return> */ 1169 /* Error code. 0 1184 /* Error code. 0~means success. */ 1170 1185 /* */ 1171 1186 /* <Note> */ … … 1189 1204 const FT_Raster_Params* params ); 1190 1205 1191 #define FT_Raster_Render_Func FT_Raster_RenderFunc 1206 #define FT_Raster_Render_Func FT_Raster_RenderFunc 1207 1192 1208 1193 1209 /*************************************************************************/ … … 1212 1228 typedef struct FT_Raster_Funcs_ 1213 1229 { 1214 FT_Glyph_Format 1215 FT_Raster_NewFunc 1216 FT_Raster_ResetFunc 1217 FT_Raster_SetModeFunc 1218 FT_Raster_RenderFunc 1219 FT_Raster_DoneFunc 1230 FT_Glyph_Format glyph_format; 1231 FT_Raster_NewFunc raster_new; 1232 FT_Raster_ResetFunc raster_reset; 1233 FT_Raster_SetModeFunc raster_set_mode; 1234 FT_Raster_RenderFunc raster_render; 1235 FT_Raster_DoneFunc raster_done; 1220 1236 1221 1237 } FT_Raster_Funcs; -
trunk/poppler/freetype2/include/freetype/ftincrem.h
r209 r251 5 5 /* FreeType incremental loading (specification). */ 6 6 /* */ 7 /* Copyright 2002, 2003, 2006, 2007 by*/7 /* Copyright 2002, 2003, 2006, 2007, 2008 by */ 8 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 9 /* */ … … 32 32 FT_BEGIN_HEADER 33 33 34 /*************************************************************************** 35 * 36 * @section: 37 * incremental 38 * 39 * @title: 40 * Incremental Loading 41 * 42 * @abstract: 43 * Custom Glyph Loading. 44 * 45 * @description: 46 * This section contains various functions used to perform so-called 47 * `incremental' glyph loading. This is a mode where all glyphs loaded 48 * from a given @FT_Face are provided by the client application, 49 * 50 * Apart from that, all other tables are loaded normally from the font 51 * file. This mode is useful when FreeType is used within another 52 * engine, e.g., a Postscript Imaging Processor. 53 * 54 * To enable this mode, you must use @FT_Open_Face, passing an 55 * @FT_Parameter with the @FT_PARAM_TAG_INCREMENTAL tag and an 56 * @FT_Incremental_Interface value. See the comments for 57 * @FT_Incremental_InterfaceRec for an example. 58 * 59 */ 60 61 62 /*************************************************************************** 63 * 64 * @type: 65 * FT_Incremental 66 * 67 * @description: 68 * An opaque type describing a user-provided object used to implement 69 * `incremental' glyph loading within FreeType. This is used to support 70 * embedded fonts in certain environments (e.g., Postscript interpreters), 71 * where the glyph data isn't in the font file, or must be overridden by 72 * different values. 73 * 74 * @note: 75 * It is up to client applications to create and implement @FT_Incremental 76 * objects, as long as they provide implementations for the methods 77 * @FT_Incremental_GetGlyphDataFunc, @FT_Incremental_FreeGlyphDataFunc 78 * and @FT_Incremental_GetGlyphMetricsFunc. 79 * 80 * See the description of @FT_Incremental_InterfaceRec to understand how 81 * to use incremental objects with FreeType. 82 */ 34 /*************************************************************************** 35 * 36 * @section: 37 * incremental 38 * 39 * @title: 40 * Incremental Loading 41 * 42 * @abstract: 43 * Custom Glyph Loading. 44 * 45 * @description: 46 * This section contains various functions used to perform so-called 47 * `incremental' glyph loading. This is a mode where all glyphs loaded 48 * from a given @FT_Face are provided by the client application, 49 * 50 * Apart from that, all other tables are loaded normally from the font 51 * file. This mode is useful when FreeType is used within another 52 * engine, e.g., a PostScript Imaging Processor. 53 * 54 * To enable this mode, you must use @FT_Open_Face, passing an 55 * @FT_Parameter with the @FT_PARAM_TAG_INCREMENTAL tag and an 56 * @FT_Incremental_Interface value. See the comments for 57 * @FT_Incremental_InterfaceRec for an example. 58 * 59 */ 60 61 62 /*************************************************************************** 63 * 64 * @type: 65 * FT_Incremental 66 * 67 * @description: 68 * An opaque type describing a user-provided object used to implement 69 * `incremental' glyph loading within FreeType. This is used to support 70 * embedded fonts in certain environments (e.g., PostScript interpreters), 71 * where the glyph data isn't in the font file, or must be overridden by 72 * different values. 73 * 74 * @note: 75 * It is up to client applications to create and implement @FT_Incremental 76 * objects, as long as they provide implementations for the methods 77 * @FT_Incremental_GetGlyphDataFunc, @FT_Incremental_FreeGlyphDataFunc 78 * and @FT_Incremental_GetGlyphMetricsFunc. 79 * 80 * See the description of @FT_Incremental_InterfaceRec to understand how 81 * to use incremental objects with FreeType. 82 * 83 */ 83 84 typedef struct FT_IncrementalRec_* FT_Incremental; 84 85 85 86 86 /*************************************************************************** 87 * 88 * @struct: 89 * FT_Incremental_Metrics 90 * 91 * @description: 92 * A small structure used to contain the basic glyph metrics returned 93 * by the @FT_Incremental_GetGlyphMetricsFunc method. 94 * 95 * @fields: 96 * bearing_x :: 97 * Left bearing, in font units. 98 * 99 * bearing_y :: 100 * Top bearing, in font units. 101 * 102 * advance :: 103 * Glyph advance, in font units. 104 * 105 * @note: 106 * These correspond to horizontal or vertical metrics depending on the 107 * value of the `vertical' argument to the function 108 * @FT_Incremental_GetGlyphMetricsFunc. 109 */ 87 /*************************************************************************** 88 * 89 * @struct: 90 * FT_Incremental_MetricsRec 91 * 92 * @description: 93 * A small structure used to contain the basic glyph metrics returned 94 * by the @FT_Incremental_GetGlyphMetricsFunc method. 95 * 96 * @fields: 97 * bearing_x :: 98 * Left bearing, in font units. 99 * 100 * bearing_y :: 101 * Top bearing, in font units. 102 * 103 * advance :: 104 * Glyph advance, in font units. 105 * 106 * @note: 107 * These correspond to horizontal or vertical metrics depending on the 108 * value of the `vertical' argument to the function 109 * @FT_Incremental_GetGlyphMetricsFunc. 110 * 111 */ 110 112 typedef struct FT_Incremental_MetricsRec_ 111 113 { … … 114 116 FT_Long advance; 115 117 116 } FT_Incremental_MetricsRec, *FT_Incremental_Metrics; 117 118 119 /*************************************************************************** 120 * 121 * @type: 122 * FT_Incremental_GetGlyphDataFunc 123 * 124 * @description: 125 * A function called by FreeType to access a given glyph's data bytes 126 * during @FT_Load_Glyph or @FT_Load_Char if incremental loading is 127 * enabled. 128 * 129 * Note that the format of the glyph's data bytes depends on the font 130 * file format. For TrueType, it must correspond to the raw bytes within 131 * the `glyf' table. For Postscript formats, it must correspond to the 132 * *unencrypted* charstring bytes, without any `lenIV' header. It is 133 * undefined for any other format. 134 * 135 * @input: 136 * incremental :: 137 * Handle to an opaque @FT_Incremental handle provided by the client 138 * application. 139 * 140 * glyph_index :: 141 * Index of relevant glyph. 142 * 143 * @output: 144 * adata :: 145 * A structure describing the returned glyph data bytes (which will be 146 * accessed as a read-only byte block). 147 * 148 * @return: 149 * FreeType error code. 0 means success. 150 * 151 * @note: 152 * If this function returns successfully the method 153 * @FT_Incremental_FreeGlyphDataFunc will be called later to release 154 * the data bytes. 155 * 156 * Nested calls to @FT_Incremental_GetGlyphDataFunc can happen for 157 * compound glyphs. 158 */ 118 } FT_Incremental_MetricsRec; 119 120 121 /*************************************************************************** 122 * 123 * @struct: 124 * FT_Incremental_Metrics 125 * 126 * @description: 127 * A handle to an @FT_Incremental_MetricsRec structure. 128 * 129 */ 130 typedef struct FT_Incremental_MetricsRec_* FT_Incremental_Metrics; 131 132 133 /*************************************************************************** 134 * 135 * @type: 136 * FT_Incremental_GetGlyphDataFunc 137 * 138 * @description: 139 * A function called by FreeType to access a given glyph's data bytes 140 * during @FT_Load_Glyph or @FT_Load_Char if incremental loading is 141 * enabled. 142 * 143 * Note that the format of the glyph's data bytes depends on the font 144 * file format. For TrueType, it must correspond to the raw bytes within 145 * the `glyf' table. For PostScript formats, it must correspond to the 146 * *unencrypted* charstring bytes, without any `lenIV' header. It is 147 * undefined for any other format. 148 * 149 * @input: 150 * incremental :: 151 * Handle to an opaque @FT_Incremental handle provided by the client 152 * application. 153 * 154 * glyph_index :: 155 * Index of relevant glyph. 156 * 157 * @output: 158 * adata :: 159 * A structure describing the returned glyph data bytes (which will be 160 * accessed as a read-only byte block). 161 * 162 * @return: 163 * FreeType error code. 0~means success. 164 * 165 * @note: 166 * If this function returns successfully the method 167 * @FT_Incremental_FreeGlyphDataFunc will be called later to release 168 * the data bytes. 169 * 170 * Nested calls to @FT_Incremental_GetGlyphDataFunc can happen for 171 * compound glyphs. 172 * 173 */ 159 174 typedef FT_Error 160 175 (*FT_Incremental_GetGlyphDataFunc)( FT_Incremental incremental, … … 163 178 164 179 165 /*************************************************************************** 166 * 167 * @type: 168 * FT_Incremental_FreeGlyphDataFunc 169 * 170 * @description: 171 * A function used to release the glyph data bytes returned by a 172 * successful call to @FT_Incremental_GetGlyphDataFunc. 173 * 174 * @input: 175 * incremental :: 176 * A handle to an opaque @FT_Incremental handle provided by the client 177 * application. 178 * 179 * data :: 180 * A structure describing the glyph data bytes (which will be accessed 181 * as a read-only byte block). 182 */ 180 /*************************************************************************** 181 * 182 * @type: 183 * FT_Incremental_FreeGlyphDataFunc 184 * 185 * @description: 186 * A function used to release the glyph data bytes returned by a 187 * successful call to @FT_Incremental_GetGlyphDataFunc. 188 * 189 * @input: 190 * incremental :: 191 * A handle to an opaque @FT_Incremental handle provided by the client 192 * application. 193 * 194 * data :: 195 * A structure describing the glyph data bytes (which will be accessed 196 * as a read-only byte block). 197 * 198 */ 183 199 typedef void 184 200 (*FT_Incremental_FreeGlyphDataFunc)( FT_Incremental incremental, … … 186 202 187 203 188 /***************************************************************************189 *190 * @type:191 * FT_Incremental_GetGlyphMetricsFunc192 *193 * @description:194 * A function used to retrieve the basic metrics of a given glyph index195 * before accessing its data. This is necessary because, in certain196 * formats like TrueType, the metrics are stored in a different place from197 * the glyph images proper.198 *199 * @input:200 * incremental ::201 * A handle to an opaque @FT_Incremental handle provided by the client202 * application.203 *204 * glyph_index ::205 * Index of relevant glyph.206 *207 * vertical ::208 * If true, return vertical metrics.209 *210 * ametrics ::211 * This parameter is used for both input and output.212 * The original glyph metrics, if any, in font units. If metrics are213 * not available all the values must be set to zero.214 *215 * @output:216 * ametrics ::217 * The replacement glyph metrics in font units.218 *219 */204 /*************************************************************************** 205 * 206 * @type: 207 * FT_Incremental_GetGlyphMetricsFunc 208 * 209 * @description: 210 * A function used to retrieve the basic metrics of a given glyph index 211 * before accessing its data. This is necessary because, in certain 212 * formats like TrueType, the metrics are stored in a different place from 213 * the glyph images proper. 214 * 215 * @input: 216 * incremental :: 217 * A handle to an opaque @FT_Incremental handle provided by the client 218 * application. 219 * 220 * glyph_index :: 221 * Index of relevant glyph. 222 * 223 * vertical :: 224 * If true, return vertical metrics. 225 * 226 * ametrics :: 227 * This parameter is used for both input and output. 228 * The original glyph metrics, if any, in font units. If metrics are 229 * not available all the values must be set to zero. 230 * 231 * @output: 232 * ametrics :: 233 * The replacement glyph metrics in font units. 234 * 235 */ 220 236 typedef FT_Error 221 237 (*FT_Incremental_GetGlyphMetricsFunc) … … 245 261 * The function to get glyph metrics. May be null if the font does 246 262 * not provide overriding glyph metrics. 263 * 247 264 */ 248 265 typedef struct FT_Incremental_FuncsRec_ … … 255 272 256 273 257 /*************************************************************************** 258 * 259 * @struct: 260 * FT_Incremental_InterfaceRec 261 * 262 * @description: 263 * A structure to be used with @FT_Open_Face to indicate that the user 264 * wants to support incremental glyph loading. You should use it with 265 * @FT_PARAM_TAG_INCREMENTAL as in the following example: 266 * 267 * { 268 * FT_Incremental_InterfaceRec inc_int; 269 * FT_Parameter parameter; 270 * FT_Open_Args open_args; 271 * 272 * 273 * // set up incremental descriptor 274 * inc_int.funcs = my_funcs; 275 * inc_int.object = my_object; 276 * 277 * // set up optional parameter 278 * parameter.tag = FT_PARAM_TAG_INCREMENTAL; 279 * parameter.data = &inc_int; 280 * 281 * // set up FT_Open_Args structure 282 * open_args.flags = FT_OPEN_PATHNAME | FT_OPEN_PARAMS; 283 * open_args.pathname = my_font_pathname; 284 * open_args.num_params = 1; 285 * open_args.params = ¶meter; // we use one optional argument 286 * 287 * // open the font 288 * error = FT_Open_Face( library, &open_args, index, &face ); 289 * ... 290 * } 291 */ 274 /*************************************************************************** 275 * 276 * @struct: 277 * FT_Incremental_InterfaceRec 278 * 279 * @description: 280 * A structure to be used with @FT_Open_Face to indicate that the user 281 * wants to support incremental glyph loading. You should use it with 282 * @FT_PARAM_TAG_INCREMENTAL as in the following example: 283 * 284 * { 285 * FT_Incremental_InterfaceRec inc_int; 286 * FT_Parameter parameter; 287 * FT_Open_Args open_args; 288 * 289 * 290 * // set up incremental descriptor 291 * inc_int.funcs = my_funcs; 292 * inc_int.object = my_object; 293 * 294 * // set up optional parameter 295 * parameter.tag = FT_PARAM_TAG_INCREMENTAL; 296 * parameter.data = &inc_int; 297 * 298 * // set up FT_Open_Args structure 299 * open_args.flags = FT_OPEN_PATHNAME | FT_OPEN_PARAMS; 300 * open_args.pathname = my_font_pathname; 301 * open_args.num_params = 1; 302 * open_args.params = ¶meter; // we use one optional argument 303 * 304 * // open the font 305 * error = FT_Open_Face( library, &open_args, index, &face ); 306 * ... 307 * } 308 * 309 */ 292 310 typedef struct FT_Incremental_InterfaceRec_ 293 311 { … … 298 316 299 317 300 /***************************************************************************301 *302 * @type:303 * FT_Incremental_Interface304 *305 * @description:306 * A pointer to an @FT_Incremental_InterfaceRec structure.307 *308 */318 /*************************************************************************** 319 * 320 * @type: 321 * FT_Incremental_Interface 322 * 323 * @description: 324 * A pointer to an @FT_Incremental_InterfaceRec structure. 325 * 326 */ 309 327 typedef FT_Incremental_InterfaceRec* FT_Incremental_Interface; 310 328 311 329 312 /***************************************************************************313 *314 * @constant:315 * FT_PARAM_TAG_INCREMENTAL316 *317 * @description:318 * A constant used as the tag of @FT_Parameter structures to indicate319 * an incremental loading object to be used by FreeType.320 *321 */330 /*************************************************************************** 331 * 332 * @constant: 333 * FT_PARAM_TAG_INCREMENTAL 334 * 335 * @description: 336 * A constant used as the tag of @FT_Parameter structures to indicate 337 * an incremental loading object to be used by FreeType. 338 * 339 */ 322 340 #define FT_PARAM_TAG_INCREMENTAL FT_MAKE_TAG( 'i', 'n', 'c', 'r' ) 323 341 324 /* */342 /* */ 325 343 326 344 FT_END_HEADER -
trunk/poppler/freetype2/include/freetype/ftlcdfil.h
r209 r251 6 6 /* (specification). */ 7 7 /* */ 8 /* Copyright 2006, 2007 by*/8 /* Copyright 2006, 2007, 2008 by */ 9 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 10 10 /* */ … … 86 86 * 2.3.0 87 87 */ 88 typedef enum 88 typedef enum FT_LcdFilter_ 89 89 { 90 90 FT_LCD_FILTER_NONE = 0, … … 120 120 * 121 121 * @return: 122 * FreeType error code. 0 122 * FreeType error code. 0~means success. 123 123 * 124 124 * @note: … … 142 142 * either larger or taller than the dimensions of the corresponding 143 143 * outline with regards to the pixel grid. For example, for 144 * @FT_RENDER_MODE_LCD, the filter adds up to 3 145 * up to 3 144 * @FT_RENDER_MODE_LCD, the filter adds up to 3~pixels to the left, and 145 * up to 3~pixels to the right. 146 146 * 147 147 * The bitmap offset values are adjusted correctly, so clients shouldn't -
trunk/poppler/freetype2/include/freetype/ftlist.h
r200 r251 82 82 /* */ 83 83 /* <Description> */ 84 /* Find s the list node for a given listed object.*/84 /* Find the list node for a given listed object. */ 85 85 /* */ 86 86 /* <Input> */ … … 102 102 /* */ 103 103 /* <Description> */ 104 /* Append s an element to the end of a list.*/104 /* Append an element to the end of a list. */ 105 105 /* */ 106 106 /* <InOut> */ … … 119 119 /* */ 120 120 /* <Description> */ 121 /* Insert s an element at the head of a list.*/121 /* Insert an element at the head of a list. */ 122 122 /* */ 123 123 /* <InOut> */ … … 136 136 /* */ 137 137 /* <Description> */ 138 /* Remove s a node from a list. This function doesn't check whether*/138 /* Remove a node from a list. This function doesn't check whether */ 139 139 /* the node is in the list! */ 140 140 /* */ … … 156 156 /* */ 157 157 /* <Description> */ 158 /* Move s a node to the head/top of a list. Used to maintain LRU*/158 /* Move a node to the head/top of a list. Used to maintain LRU */ 159 159 /* lists. */ 160 160 /* */ … … 194 194 /* */ 195 195 /* <Description> */ 196 /* Parse s a list and calls a given iterator function on each element.*/196 /* Parse a list and calls a given iterator function on each element. */ 197 197 /* Note that parsing is stopped as soon as one of the iterator calls */ 198 198 /* returns a non-zero value. */ … … 243 243 /* */ 244 244 /* <Description> */ 245 /* Destroy s all elements in the list as well as the list itself.*/245 /* Destroy all elements in the list as well as the list itself. */ 246 246 /* */ 247 247 /* <Input> */ -
trunk/poppler/freetype2/include/freetype/ftlzw.h
r209 r251 64 64 * 65 65 * @return: 66 * FreeType error code. 0 66 * FreeType error code. 0~means success. 67 67 * 68 68 * @note: -
trunk/poppler/freetype2/include/freetype/ftmac.h
r209 r251 19 19 /***************************************************************************/ 20 20 /* */ 21 /* NOTE: Include this file after <freetype/freetype.h> and after the*/22 /* Mac-specific <Types.h> header (or any other Mac header that*/23 /* includes <Types.h>); we use Handle type.*/21 /* NOTE: Include this file after <freetype/freetype.h> and after any */ 22 /* Mac-specific headers (because this header uses Mac types such as */ 23 /* Handle, FSSpec, FSRef, etc.) */ 24 24 /* */ 25 25 /***************************************************************************/ … … 86 86 /* */ 87 87 /* <Return> */ 88 /* FreeType error code. 0 88 /* FreeType error code. 0~means success. */ 89 89 /* */ 90 90 /* <Notes> */ … … 101 101 Handle fond, 102 102 FT_Long face_index, 103 FT_Face *aface ); 103 FT_Face *aface ) 104 FT_DEPRECATED_ATTRIBUTE; 104 105 105 106 … … 124 125 /* */ 125 126 /* <Return> */ 126 /* FreeType error code. 0 127 /* FreeType error code. 0~means success. */ 127 128 /* */ 128 129 FT_EXPORT( FT_Error ) … … 152 153 /* */ 153 154 /* <Return> */ 154 /* FreeType error code. 0 155 /* FreeType error code. 0~means success. */ 155 156 /* */ 156 157 FT_EXPORT( FT_Error ) … … 183 184 /* */ 184 185 /* <Return> */ 185 /* FreeType error code. 0 186 /* FreeType error code. 0~means success. */ 186 187 /* */ 187 188 FT_EXPORT( FT_Error ) … … 189 190 UInt8* path, 190 191 UInt32 maxPathSize, 191 FT_Long* face_index ); 192 FT_Long* face_index ) 193 FT_DEPRECATED_ATTRIBUTE; 192 194 193 195 … … 208 210 /* */ 209 211 /* face_index :: The index of the face within the resource. The */ 210 /* first face has index 212 /* first face has index~0. */ 211 213 /* <Output> */ 212 214 /* aface :: A handle to a new face object. */ 213 215 /* */ 214 216 /* <Return> */ 215 /* FreeType error code. 0 217 /* FreeType error code. 0~means success. */ 216 218 /* */ 217 219 /* <Note> */ … … 243 245 /* */ 244 246 /* face_index :: The index of the face within the resource. The */ 245 /* first face has index 247 /* first face has index~0. */ 246 248 /* <Output> */ 247 249 /* aface :: A handle to a new face object. */ 248 250 /* */ 249 251 /* <Return> */ 250 /* FreeType error code. 0 252 /* FreeType error code. 0~means success. */ 251 253 /* */ 252 254 /* <Note> */ -
trunk/poppler/freetype2/include/freetype/ftmm.h
r150 r251 45 45 /* */ 46 46 /* George Williams has extended this interface to make it work with */ 47 /* both Type 47 /* both Type~1 Multiple Masters fonts and GX distortable (var) */ 48 48 /* fonts. Some of these routines only work with MM fonts, others */ 49 49 /* will work with both types. They are similar enough that a */ … … 92 92 /* */ 93 93 /* <Fields> */ 94 /* num_axis :: Number of axes. Cannot exceed 94 /* num_axis :: Number of axes. Cannot exceed~4. */ 95 95 /* */ 96 96 /* num_designs :: Number of designs; should be normally 2^num_axis */ 97 /* even though the Type 97 /* even though the Type~1 specification strangely */ 98 98 /* allows for intermediate designs to be present. This */ 99 /* number cannot exceed 99 /* number cannot exceed~16. */ 100 100 /* */ 101 101 /* axis :: A table of axis descriptors. */ … … 188 188 /* */ 189 189 /* <Fields> */ 190 /* num_axis :: The number of axes. The maximum value is 190 /* num_axis :: The number of axes. The maximum value is~4 for */ 191 191 /* MM; no limit in GX. */ 192 192 /* */ … … 228 228 /* */ 229 229 /* <Description> */ 230 /* Retrieve s the Multiple Master descriptor of a given font.*/230 /* Retrieve the Multiple Master descriptor of a given font. */ 231 231 /* */ 232 232 /* This function can't be used with GX fonts. */ … … 239 239 /* */ 240 240 /* <Return> */ 241 /* FreeType error code. 0 241 /* FreeType error code. 0~means success. */ 242 242 /* */ 243 243 FT_EXPORT( FT_Error ) … … 252 252 /* */ 253 253 /* <Description> */ 254 /* Retrieve s the Multiple Master/GX var descriptor of a given font.*/254 /* Retrieve the Multiple Master/GX var descriptor of a given font. */ 255 255 /* */ 256 256 /* <Input> */ … … 263 263 /* */ 264 264 /* <Return> */ 265 /* FreeType error code. 0 265 /* FreeType error code. 0~means success. */ 266 266 /* */ 267 267 FT_EXPORT( FT_Error ) … … 291 291 /* */ 292 292 /* <Return> */ 293 /* FreeType error code. 0 293 /* FreeType error code. 0~means success. */ 294 294 /* */ 295 295 FT_EXPORT( FT_Error ) … … 318 318 /* */ 319 319 /* <Return> */ 320 /* FreeType error code. 0 320 /* FreeType error code. 0~means success. */ 321 321 /* */ 322 322 FT_EXPORT( FT_Error ) … … 346 346 /* */ 347 347 /* <Return> */ 348 /* FreeType error code. 0 348 /* FreeType error code. 0~means success. */ 349 349 /* */ 350 350 FT_EXPORT( FT_Error ) -
trunk/poppler/freetype2/include/freetype/ftmodapi.h
r209 r251 5 5 /* FreeType modules public interface (specification). */ 6 6 /* */ 7 /* Copyright 1996-2001, 2002, 2003, 2006 by*/7 /* Copyright 1996-2001, 2002, 2003, 2006, 2008 by */ 8 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 9 /* */ … … 79 79 typedef FT_Pointer FT_Module_Interface; 80 80 81 82 /*************************************************************************/ 83 /* */ 84 /* <FuncType> */ 85 /* FT_Module_Constructor */ 86 /* */ 87 /* <Description> */ 88 /* A function used to initialize (not create) a new module object. */ 89 /* */ 90 /* <Input> */ 91 /* module :: The module to initialize. */ 92 /* */ 81 93 typedef FT_Error 82 94 (*FT_Module_Constructor)( FT_Module module ); 83 95 96 97 /*************************************************************************/ 98 /* */ 99 /* <FuncType> */ 100 /* FT_Module_Destructor */ 101 /* */ 102 /* <Description> */ 103 /* A function used to finalize (not destroy) a given module object. */ 104 /* */ 105 /* <Input> */ 106 /* module :: The module to finalize. */ 107 /* */ 84 108 typedef void 85 109 (*FT_Module_Destructor)( FT_Module module ); 86 110 111 112 /*************************************************************************/ 113 /* */ 114 /* <FuncType> */ 115 /* FT_Module_Requester */ 116 /* */ 117 /* <Description> */ 118 /* A function used to query a given module for a specific interface. */ 119 /* */ 120 /* <Input> */ 121 /* module :: The module to finalize. */ 122 /* */ 123 /* name :: The name of the interface in the module. */ 124 /* */ 87 125 typedef FT_Module_Interface 88 126 (*FT_Module_Requester)( FT_Module module, … … 113 151 /* at version 2.0, i.e., 0x20000. */ 114 152 /* */ 115 /* module_init :: A function used to initialize (not create) a */ 116 /* new module object. */ 117 /* */ 118 /* module_done :: A function used to finalize (not destroy) a */ 119 /* given module object */ 120 /* */ 121 /* get_interface :: Queries a given module for a specific */ 122 /* interface by name. */ 153 /* module_init :: The initializing function. */ 154 /* */ 155 /* module_done :: The finalizing function. */ 156 /* */ 157 /* get_interface :: The interface requesting function. */ 123 158 /* */ 124 159 typedef struct FT_Module_Class_ … … 145 180 /* */ 146 181 /* <Description> */ 147 /* Add s a new module to a given library instance.*/182 /* Add a new module to a given library instance. */ 148 183 /* */ 149 184 /* <InOut> */ … … 154 189 /* */ 155 190 /* <Return> */ 156 /* FreeType error code. 0 191 /* FreeType error code. 0~means success. */ 157 192 /* */ 158 193 /* <Note> */ … … 171 206 /* */ 172 207 /* <Description> */ 173 /* Find s a module by its name.*/208 /* Find a module by its name. */ 174 209 /* */ 175 210 /* <Input> */ … … 179 214 /* */ 180 215 /* <Return> */ 181 /* A module handle. 0 216 /* A module handle. 0~if none was found. */ 182 217 /* */ 183 218 /* <Note> */ … … 196 231 /* */ 197 232 /* <Description> */ 198 /* Remove s a given module from a library instance.*/233 /* Remove a given module from a library instance. */ 199 234 /* */ 200 235 /* <InOut> */ … … 205 240 /* */ 206 241 /* <Return> */ 207 /* FreeType error code. 0 242 /* FreeType error code. 0~means success. */ 208 243 /* */ 209 244 /* <Note> */ … … 232 267 /* */ 233 268 /* <Return> */ 234 /* FreeType error code. 0 269 /* FreeType error code. 0~means success. */ 235 270 /* */ 236 271 FT_EXPORT( FT_Error ) … … 245 280 /* */ 246 281 /* <Description> */ 247 /* Discard s a given library object. This closes all drivers and*/282 /* Discard a given library object. This closes all drivers and */ 248 283 /* discards all resource objects. */ 249 284 /* */ … … 252 287 /* */ 253 288 /* <Return> */ 254 /* FreeType error code. 0 289 /* FreeType error code. 0~means success. */ 255 290 /* */ 256 291 FT_EXPORT( FT_Error ) … … 269 304 /* */ 270 305 /* <Description> */ 271 /* Set s a debug hook function for debugging the interpreter of a font*/306 /* Set a debug hook function for debugging the interpreter of a font */ 272 307 /* format. */ 273 308 /* */ … … 284 319 /* <Note> */ 285 320 /* Currently, four debug hook slots are available, but only two (for */ 286 /* the TrueType and the Type 321 /* the TrueType and the Type~1 interpreter) are defined. */ 287 322 /* */ 288 323 /* Since the internal headers of FreeType are no longer installed, */ … … 302 337 /* */ 303 338 /* <Description> */ 304 /* Add s the set of default drivers to a given library object.*/339 /* Add the set of default drivers to a given library object. */ 305 340 /* This is only useful when you create a library object with */ 306 341 /* @FT_New_Library (usually to plug a custom memory manager). */ … … 363 398 * 364 399 */ 365 typedef enum 400 typedef enum FT_TrueTypeEngineType_ 366 401 { 367 402 FT_TRUETYPE_ENGINE_TYPE_NONE = 0, -
trunk/poppler/freetype2/include/freetype/ftotval.h
r209 r251 5 5 /* FreeType API for validating OpenType tables (specification). */ 6 6 /* */ 7 /* Copyright 2004, 2005, 2006 by*/7 /* Copyright 2004, 2005, 2006, 2007 by */ 8 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 9 /* */ … … 57 57 /* <Description> */ 58 58 /* This section contains the declaration of functions to validate */ 59 /* some OpenType tables (BASE, GDEF, GPOS, GSUB, JSTF ).*/59 /* some OpenType tables (BASE, GDEF, GPOS, GSUB, JSTF, MATH). */ 60 60 /* */ 61 61 /*************************************************************************/ … … 87 87 * Validate JSTF table. 88 88 * 89 * FT_VALIDATE_MATH :: 90 * Validate MATH table. 91 * 89 92 * FT_VALIDATE_OT :: 90 * Validate all OpenType tables (BASE, GDEF, GPOS, GSUB, JSTF ).93 * Validate all OpenType tables (BASE, GDEF, GPOS, GSUB, JSTF, MATH). 91 94 * 92 95 */ … … 96 99 #define FT_VALIDATE_GSUB 0x0800 97 100 #define FT_VALIDATE_JSTF 0x1000 101 #define FT_VALIDATE_MATH 0x2000 98 102 99 103 #define FT_VALIDATE_OT FT_VALIDATE_BASE | \ … … 101 105 FT_VALIDATE_GPOS | \ 102 106 FT_VALIDATE_GSUB | \ 103 FT_VALIDATE_JSTF 107 FT_VALIDATE_JSTF | \ 108 FT_VALIDATE_MATH 104 109 105 110 /* */ … … 141 146 * 142 147 * @return: 143 * FreeType error code. 0 148 * FreeType error code. 0~means success. 144 149 * 145 150 * @note: -
trunk/poppler/freetype2/include/freetype/ftoutln.h
r200 r251 6 6 /* most scalable font formats (specification). */ 7 7 /* */ 8 /* Copyright 1996-2001, 2002, 2003, 2005, 2006, 2007 by*/8 /* Copyright 1996-2001, 2002, 2003, 2005, 2006, 2007, 2008 by */ 9 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 10 10 /* */ … … 85 85 /* */ 86 86 /* <Description> */ 87 /* Walk s over an outline's structure to decompose it into individual*/87 /* Walk over an outline's structure to decompose it into individual */ 88 88 /* segments and Bézier arcs. This function is also able to emit */ 89 89 /* `move to' and `close to' operations to indicate the start and end */ … … 104 104 /* */ 105 105 /* <Return> */ 106 /* FreeType error code. 0 106 /* FreeType error code. 0~means success. */ 107 107 /* */ 108 108 FT_EXPORT( FT_Error ) … … 118 118 /* */ 119 119 /* <Description> */ 120 /* Create s a new outline of a given size.*/120 /* Create a new outline of a given size. */ 121 121 /* */ 122 122 /* <Input> */ …