cairo 1.12.2-x86-mingw32 → 1.12.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cairo might be problematic. Click here for more details.

Files changed (90) hide show
  1. data/NEWS +48 -33
  2. data/README.rdoc +4 -1
  3. data/Rakefile +5 -9
  4. data/ext/cairo/depend +2 -1
  5. data/ext/cairo/extconf.rb +3 -1
  6. data/ext/cairo/rb_cairo.h +1 -1
  7. data/lib/1.8/cairo.so +0 -0
  8. data/lib/1.9/cairo.so +0 -0
  9. data/vendor/local/bin/freetype-config +2 -2
  10. data/vendor/local/bin/freetype6.dll +0 -0
  11. data/vendor/local/bin/libcairo-2.dll +0 -0
  12. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  13. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  14. data/vendor/local/bin/libexpat-1.dll +0 -0
  15. data/vendor/local/bin/libpng14-14.dll +0 -0
  16. data/vendor/local/bin/xmlwf.exe +0 -0
  17. data/vendor/local/include/expat.h +36 -3
  18. data/vendor/local/include/freetype2/freetype/config/ftconfig.h +83 -15
  19. data/vendor/local/include/freetype2/freetype/config/ftheader.h +14 -1
  20. data/vendor/local/include/freetype2/freetype/config/ftoption.h +76 -4
  21. data/vendor/local/include/freetype2/freetype/config/ftstdlib.h +7 -6
  22. data/vendor/local/include/freetype2/freetype/freetype.h +98 -54
  23. data/vendor/local/include/freetype2/freetype/ftbbox.h +9 -1
  24. data/vendor/local/include/freetype2/freetype/ftbzip2.h +102 -0
  25. data/vendor/local/include/freetype2/freetype/ftcache.h +17 -2
  26. data/vendor/local/include/freetype2/freetype/ftchapters.h +1 -0
  27. data/vendor/local/include/freetype2/freetype/fterrdef.h +3 -2
  28. data/vendor/local/include/freetype2/freetype/fterrors.h +2 -1
  29. data/vendor/local/include/freetype2/freetype/ftgasp.h +11 -3
  30. data/vendor/local/include/freetype2/freetype/ftglyph.h +8 -1
  31. data/vendor/local/include/freetype2/freetype/ftimage.h +12 -0
  32. data/vendor/local/include/freetype2/freetype/ftmoderr.h +20 -19
  33. data/vendor/local/include/freetype2/freetype/ftoutln.h +25 -4
  34. data/vendor/local/include/freetype2/freetype/ftrender.h +8 -0
  35. data/vendor/local/include/freetype2/freetype/ftstroke.h +47 -12
  36. data/vendor/local/include/freetype2/freetype/ftsynth.h +4 -3
  37. data/vendor/local/include/freetype2/freetype/fttypes.h +2 -2
  38. data/vendor/local/include/freetype2/freetype/t1tables.h +160 -2
  39. data/vendor/local/include/freetype2/freetype/tttables.h +10 -5
  40. data/vendor/local/include/libpng14/png.h +310 -274
  41. data/vendor/local/include/libpng14/pngconf.h +82 -55
  42. data/vendor/local/include/png.h +310 -274
  43. data/vendor/local/include/pngconf.h +82 -55
  44. data/vendor/local/lib/cairo.lib +0 -0
  45. data/vendor/local/lib/expat.lib +0 -0
  46. data/vendor/local/lib/freetype.def +3 -0
  47. data/vendor/local/lib/freetype.lib +0 -0
  48. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  49. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  50. data/vendor/local/lib/libcairo.dll.a +0 -0
  51. data/vendor/local/lib/libexpat.dll.a +0 -0
  52. data/vendor/local/lib/libfreetype.dll.a +0 -0
  53. data/vendor/local/lib/libpng.lib +0 -0
  54. data/vendor/local/lib/libpng14.dll.a +0 -0
  55. data/vendor/local/lib/pkgconfig/cairo.pc +2 -2
  56. data/vendor/local/lib/pkgconfig/freetype2.pc +2 -2
  57. data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
  58. data/vendor/local/lib/pkgconfig/libpng14.pc +1 -1
  59. data/vendor/local/manifest/{cairo-dev_1.10.2-1_win32.mft → cairo-dev_1.10.2-2_win32.mft} +3 -3
  60. data/vendor/local/manifest/cairo_1.10.2-2_win32.mft +7 -0
  61. data/vendor/local/manifest/expat-dev_2.1.0-1_win32.mft +10 -0
  62. data/vendor/local/manifest/expat_2.1.0-1_win32.mft +2 -0
  63. data/vendor/local/manifest/{freetype-dev_2.4.2-1_win32.mft → freetype-dev_2.4.10-1_win32.mft} +4 -3
  64. data/vendor/local/manifest/freetype_2.4.10-1_win32.mft +2 -0
  65. data/vendor/local/manifest/{libpng-dev_1.4.3-1_win32.mft → libpng-dev_1.4.12-1_win32.mft} +3 -3
  66. data/vendor/local/manifest/libpng_1.4.12-1_win32.mft +2 -0
  67. data/vendor/local/share/doc/{cairo_1.10.2-1_win32 → cairo_1.10.2-2_win32}/COPYING +0 -0
  68. data/vendor/local/share/doc/{cairo_1.10.2-1_win32 → cairo_1.10.2-2_win32}/COPYING-LGPL-2.1 +0 -0
  69. data/vendor/local/share/doc/{cairo_1.10.2-1_win32 → cairo_1.10.2-2_win32}/COPYING-MPL-1.1 +0 -0
  70. data/vendor/local/{man → share/man}/man1/xmlwf.1 +0 -0
  71. data/vendor/local/share/man/man3/libpng.3 +288 -138
  72. data/vendor/local/share/man/man3/libpngpf.3 +5 -11
  73. data/vendor/local/share/man/man5/png.5 +2 -2
  74. data/vendor/local/src/{tml/packaging/cairo_1.10.2-1_win32.log → dieterv/packaging/cairo_1.10.2-2_win32.log} +346 -300
  75. data/vendor/local/src/dieterv/packaging/cairo_1.10.2-2_win32.sh +251 -0
  76. data/vendor/local/src/dieterv/packaging/expat_2.1.0-1_win32.log +181 -0
  77. data/vendor/local/src/{tml/packaging/expat_2.0.1-1_win32.sh → dieterv/packaging/expat_2.1.0-1_win32.sh} +20 -12
  78. data/vendor/local/src/dieterv/packaging/freetype_2.4.10-1_win32.log +363 -0
  79. data/vendor/local/src/{tml/packaging/freetype_2.4.2-1_win32.sh → dieterv/packaging/freetype_2.4.10-1_win32.sh} +10 -11
  80. data/vendor/local/src/{tml/packaging/libpng_1.4.3-1_win32.log → dieterv/packaging/libpng_1.4.12-1_win32.log} +132 -121
  81. data/vendor/local/src/{tml/packaging/libpng_1.4.3-1_win32.sh → dieterv/packaging/libpng_1.4.12-1_win32.sh} +10 -10
  82. metadata +31 -30
  83. data/vendor/local/manifest/cairo_1.10.2-1_win32.mft +0 -7
  84. data/vendor/local/manifest/expat-dev_2.0.1-1_win32.mft +0 -10
  85. data/vendor/local/manifest/expat_2.0.1-1_win32.mft +0 -2
  86. data/vendor/local/manifest/freetype_2.4.2-1_win32.mft +0 -2
  87. data/vendor/local/manifest/libpng_1.4.3-1_win32.mft +0 -2
  88. data/vendor/local/src/tml/packaging/cairo_1.10.2-1_win32.sh +0 -84
  89. data/vendor/local/src/tml/packaging/expat_2.0.1-1_win32.log +0 -188
  90. data/vendor/local/src/tml/packaging/freetype_2.4.2-1_win32.log +0 -364
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType exact bbox computation (specification). */
6
6
  /* */
7
- /* Copyright 1996-2001, 2003, 2007 by */
7
+ /* Copyright 1996-2001, 2003, 2007, 2011 by */
8
8
  /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9
9
  /* */
10
10
  /* This file is part of the FreeType project, and may only be used, */
@@ -73,6 +73,14 @@ FT_BEGIN_HEADER
73
73
  /* <Return> */
74
74
  /* FreeType error code. 0~means success. */
75
75
  /* */
76
+ /* <Note> */
77
+ /* If the font is tricky and the glyph has been loaded with */
78
+ /* @FT_LOAD_NO_SCALE, the resulting BBox is meaningless. To get */
79
+ /* reasonable values for the BBox it is necessary to load the glyph */
80
+ /* at a large ppem value (so that the hinting instructions can */
81
+ /* properly shift and scale the subglyphs), then extracting the BBox */
82
+ /* which can be eventually converted back to font units. */
83
+ /* */
76
84
  FT_EXPORT( FT_Error )
77
85
  FT_Outline_Get_BBox( FT_Outline* outline,
78
86
  FT_BBox *abbox );
@@ -0,0 +1,102 @@
1
+ /***************************************************************************/
2
+ /* */
3
+ /* ftbzip2.h */
4
+ /* */
5
+ /* Bzip2-compressed stream support. */
6
+ /* */
7
+ /* Copyright 2010 by */
8
+ /* Joel Klinghed. */
9
+ /* */
10
+ /* This file is part of the FreeType project, and may only be used, */
11
+ /* modified, and distributed under the terms of the FreeType project */
12
+ /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13
+ /* this file you indicate that you have read the license and */
14
+ /* understand and accept it fully. */
15
+ /* */
16
+ /***************************************************************************/
17
+
18
+
19
+ #ifndef __FTBZIP2_H__
20
+ #define __FTBZIP2_H__
21
+
22
+ #include <ft2build.h>
23
+ #include FT_FREETYPE_H
24
+
25
+ #ifdef FREETYPE_H
26
+ #error "freetype.h of FreeType 1 has been loaded!"
27
+ #error "Please fix the directory search order for header files"
28
+ #error "so that freetype.h of FreeType 2 is found first."
29
+ #endif
30
+
31
+
32
+ FT_BEGIN_HEADER
33
+
34
+ /*************************************************************************/
35
+ /* */
36
+ /* <Section> */
37
+ /* bzip2 */
38
+ /* */
39
+ /* <Title> */
40
+ /* BZIP2 Streams */
41
+ /* */
42
+ /* <Abstract> */
43
+ /* Using bzip2-compressed font files. */
44
+ /* */
45
+ /* <Description> */
46
+ /* This section contains the declaration of Bzip2-specific functions. */
47
+ /* */
48
+ /*************************************************************************/
49
+
50
+
51
+ /************************************************************************
52
+ *
53
+ * @function:
54
+ * FT_Stream_OpenBzip2
55
+ *
56
+ * @description:
57
+ * Open a new stream to parse bzip2-compressed font files. This is
58
+ * mainly used to support the compressed `*.pcf.bz2' fonts that come
59
+ * with XFree86.
60
+ *
61
+ * @input:
62
+ * stream ::
63
+ * The target embedding stream.
64
+ *
65
+ * source ::
66
+ * The source stream.
67
+ *
68
+ * @return:
69
+ * FreeType error code. 0~means success.
70
+ *
71
+ * @note:
72
+ * The source stream must be opened _before_ calling this function.
73
+ *
74
+ * Calling the internal function `FT_Stream_Close' on the new stream will
75
+ * *not* call `FT_Stream_Close' on the source stream. None of the stream
76
+ * objects will be released to the heap.
77
+ *
78
+ * The stream implementation is very basic and resets the decompression
79
+ * process each time seeking backwards is needed within the stream.
80
+ *
81
+ * In certain builds of the library, bzip2 compression recognition is
82
+ * automatically handled when calling @FT_New_Face or @FT_Open_Face.
83
+ * This means that if no font driver is capable of handling the raw
84
+ * compressed file, the library will try to open a bzip2 compressed stream
85
+ * from it and re-open the face with it.
86
+ *
87
+ * This function may return `FT_Err_Unimplemented_Feature' if your build
88
+ * of FreeType was not compiled with bzip2 support.
89
+ */
90
+ FT_EXPORT( FT_Error )
91
+ FT_Stream_OpenBzip2( FT_Stream stream,
92
+ FT_Stream source );
93
+
94
+ /* */
95
+
96
+
97
+ FT_END_HEADER
98
+
99
+ #endif /* __FTBZIP2_H__ */
100
+
101
+
102
+ /* END */
@@ -56,9 +56,12 @@ FT_BEGIN_HEADER
56
56
  * interpret them in any way.
57
57
  *
58
58
  * Second, the cache calls, only when needed, a client-provided function
59
- * to convert a @FTC_FaceID into a new @FT_Face object. The latter is
59
+ * to convert an @FTC_FaceID into a new @FT_Face object. The latter is
60
60
  * then completely managed by the cache, including its termination
61
- * through @FT_Done_Face.
61
+ * through @FT_Done_Face. To monitor termination of face objects, the
62
+ * finalizer callback in the `generic' field of the @FT_Face object can
63
+ * be used, which might also be used to store the @FTC_FaceID of the
64
+ * face.
62
65
  *
63
66
  * Clients are free to map face IDs to anything else. The most simple
64
67
  * usage is to associate them to a (pathname,face_index) pair that is
@@ -211,12 +214,17 @@ FT_BEGIN_HEADER
211
214
 
212
215
  /* */
213
216
 
217
+ #ifdef FT_CONFIG_OPTION_OLD_INTERNALS
218
+
219
+ /* these macros are incompatible with LLP64, should not be used */
220
+
214
221
  #define FT_POINTER_TO_ULONG( p ) ( (FT_ULong)(FT_Pointer)(p) )
215
222
 
216
223
  #define FTC_FACE_ID_HASH( i ) \
217
224
  ((FT_UInt32)(( FT_POINTER_TO_ULONG( i ) >> 3 ) ^ \
218
225
  ( FT_POINTER_TO_ULONG( i ) << 7 ) ) )
219
226
 
227
+ #endif /* FT_CONFIG_OPTION_OLD_INTERNALS */
220
228
 
221
229
  /*************************************************************************/
222
230
  /*************************************************************************/
@@ -697,11 +705,17 @@ FT_BEGIN_HEADER
697
705
  (d1)->width == (d2)->width && \
698
706
  (d1)->flags == (d2)->flags )
699
707
 
708
+ #ifdef FT_CONFIG_OPTION_OLD_INTERNALS
709
+
710
+ /* this macro is incompatible with LLP64, should not be used */
711
+
700
712
  #define FTC_IMAGE_TYPE_HASH( d ) \
701
713
  (FT_UFast)( FTC_FACE_ID_HASH( (d)->face_id ) ^ \
702
714
  ( (d)->width << 8 ) ^ (d)->height ^ \
703
715
  ( (d)->flags << 4 ) )
704
716
 
717
+ #endif /* FT_CONFIG_OPTION_OLD_INTERNALS */
718
+
705
719
 
706
720
  /*************************************************************************/
707
721
  /* */
@@ -1093,6 +1107,7 @@ FT_BEGIN_HEADER
1093
1107
  (f1)->pix_width == (f2)->pix_width && \
1094
1108
  (f1)->pix_height == (f2)->pix_height )
1095
1109
 
1110
+ /* this macro is incompatible with LLP64, should not be used */
1096
1111
  #define FTC_FONT_HASH( f ) \
1097
1112
  (FT_UInt32)( FTC_FACE_ID_HASH((f)->face_id) ^ \
1098
1113
  ((f)->pix_width << 8) ^ \
@@ -98,6 +98,7 @@
98
98
  /* module_management */
99
99
  /* gzip */
100
100
  /* lzw */
101
+ /* bzip2 */
101
102
  /* lcd_filtering */
102
103
  /* */
103
104
  /***************************************************************************/
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType error codes (specification). */
6
6
  /* */
7
- /* Copyright 2002, 2004, 2006, 2007, 2010 by */
7
+ /* Copyright 2002, 2004, 2006, 2007, 2010-2011 by */
8
8
  /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9
9
  /* */
10
10
  /* This file is part of the FreeType project, and may only be used, */
@@ -54,6 +54,8 @@
54
54
  "broken offset within table" )
55
55
  FT_ERRORDEF_( Array_Too_Large, 0x0A, \
56
56
  "array allocation size too large" )
57
+ FT_ERRORDEF_( Missing_Module, 0x0B, \
58
+ "missing module" )
57
59
 
58
60
  /* glyph/character errors */
59
61
 
@@ -214,7 +216,6 @@
214
216
  FT_ERRORDEF_( No_Unicode_Glyph_Name, 0xA3, \
215
217
  "no Unicode glyph name found" )
216
218
 
217
-
218
219
  /* BDF errors */
219
220
 
220
221
  FT_ERRORDEF_( Missing_Startfont_Field, 0xB0, \
@@ -192,12 +192,13 @@
192
192
  #undef FT_NOERRORDEF_
193
193
 
194
194
  #undef FT_NEED_EXTERN_C
195
- #undef FT_ERR_CONCAT
196
195
  #undef FT_ERR_BASE
197
196
 
198
197
  /* FT_KEEP_ERR_PREFIX is needed for ftvalid.h */
199
198
  #ifndef FT_KEEP_ERR_PREFIX
200
199
  #undef FT_ERR_PREFIX
200
+ #else
201
+ #undef FT_KEEP_ERR_PREFIX
201
202
  #endif
202
203
 
203
204
  #endif /* __FTERRORS_H__ */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* Access of TrueType's `gasp' table (specification). */
6
6
  /* */
7
- /* Copyright 2007, 2008 by */
7
+ /* Copyright 2007, 2008, 2011 by */
8
8
  /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9
9
  /* */
10
10
  /* This file is part of the FreeType project, and may only be used, */
@@ -63,18 +63,26 @@
63
63
  *
64
64
  * FT_GASP_DO_GRIDFIT ::
65
65
  * Grid-fitting and hinting should be performed at the specified ppem.
66
- * This *really* means TrueType bytecode interpretation.
66
+ * This *really* means TrueType bytecode interpretation. If this bit
67
+ * is not set, no hinting gets applied.
67
68
  *
68
69
  * FT_GASP_DO_GRAY ::
69
70
  * Anti-aliased rendering should be performed at the specified ppem.
71
+ * If not set, do monochrome rendering.
70
72
  *
71
73
  * FT_GASP_SYMMETRIC_SMOOTHING ::
72
- * Smoothing along multiple axes must be used with ClearType.
74
+ * If set, smoothing along multiple axes must be used with ClearType.
73
75
  *
74
76
  * FT_GASP_SYMMETRIC_GRIDFIT ::
75
77
  * Grid-fitting must be used with ClearType's symmetric smoothing.
76
78
  *
77
79
  * @note:
80
+ * The bit-flags `FT_GASP_DO_GRIDFIT' and `FT_GASP_DO_GRAY' are to be
81
+ * used for standard font rasterization only. Independently of that,
82
+ * `FT_GASP_SYMMETRIC_SMOOTHING' and `FT_GASP_SYMMETRIC_GRIDFIT' are to
83
+ * be used if ClearType is enabled (and `FT_GASP_DO_GRIDFIT' and
84
+ * `FT_GASP_DO_GRAY' are consequently ignored).
85
+ *
78
86
  * `ClearType' is Microsoft's implementation of LCD rendering, partly
79
87
  * protected by patents.
80
88
  *
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType convenience functions to handle glyphs (specification). */
6
6
  /* */
7
- /* Copyright 1996-2001, 2002, 2003, 2006, 2008, 2009 by */
7
+ /* Copyright 1996-2003, 2006, 2008, 2009, 2011 by */
8
8
  /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9
9
  /* */
10
10
  /* This file is part of the FreeType project, and may only be used, */
@@ -384,6 +384,13 @@ FT_BEGIN_HEADER
384
384
  /* units in 26.6 pixel format. The value @FT_GLYPH_BBOX_SUBPIXELS */
385
385
  /* is another name for this constant. */
386
386
  /* */
387
+ /* If the font is tricky and the glyph has been loaded with */
388
+ /* @FT_LOAD_NO_SCALE, the resulting CBox is meaningless. To get */
389
+ /* reasonable values for the CBox it is necessary to load the glyph */
390
+ /* at a large ppem value (so that the hinting instructions can */
391
+ /* properly shift and scale the subglyphs), then extracting the CBox */
392
+ /* which can be eventually converted back to font units. */
393
+ /* */
387
394
  /* Note that the maximum coordinates are exclusive, which means that */
388
395
  /* one can compute the width and height of the glyph image (be it in */
389
396
  /* integer or 26.6 pixels) as: */
@@ -268,9 +268,21 @@ FT_BEGIN_HEADER
268
268
  /* flow. In all cases, the pitch is an offset to add */
269
269
  /* to a bitmap pointer in order to go down one row. */
270
270
  /* */
271
+ /* Note that `padding' means the alignment of a */
272
+ /* bitmap to a byte border, and FreeType functions */
273
+ /* normally align to the smallest possible integer */
274
+ /* value. */
275
+ /* */
271
276
  /* For the B/W rasterizer, `pitch' is always an even */
272
277
  /* number. */
273
278
  /* */
279
+ /* To change the pitch of a bitmap (say, to make it a */
280
+ /* multiple of 4), use @FT_Bitmap_Convert. */
281
+ /* Alternatively, you might use callback functions to */
282
+ /* directly render to the application's surface; see */
283
+ /* the file `example2.cpp' in the tutorial for a */
284
+ /* demonstration. */
285
+ /* */
274
286
  /* buffer :: A typeless pointer to the bitmap buffer. This */
275
287
  /* value should be aligned on 32-bit boundaries in */
276
288
  /* most cases. */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType module error offsets (specification). */
6
6
  /* */
7
- /* Copyright 2001, 2002, 2003, 2004, 2005 by */
7
+ /* Copyright 2001, 2002, 2003, 2004, 2005, 2010 by */
8
8
  /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9
9
  /* */
10
10
  /* This file is part of the FreeType project, and may only be used, */
@@ -105,24 +105,25 @@
105
105
  FT_MODERRDEF( Base, 0x000, "base module" )
106
106
  FT_MODERRDEF( Autofit, 0x100, "autofitter module" )
107
107
  FT_MODERRDEF( BDF, 0x200, "BDF module" )
108
- FT_MODERRDEF( Cache, 0x300, "cache module" )
109
- FT_MODERRDEF( CFF, 0x400, "CFF module" )
110
- FT_MODERRDEF( CID, 0x500, "CID module" )
111
- FT_MODERRDEF( Gzip, 0x600, "Gzip module" )
112
- FT_MODERRDEF( LZW, 0x700, "LZW module" )
113
- FT_MODERRDEF( OTvalid, 0x800, "OpenType validation module" )
114
- FT_MODERRDEF( PCF, 0x900, "PCF module" )
115
- FT_MODERRDEF( PFR, 0xA00, "PFR module" )
116
- FT_MODERRDEF( PSaux, 0xB00, "PS auxiliary module" )
117
- FT_MODERRDEF( PShinter, 0xC00, "PS hinter module" )
118
- FT_MODERRDEF( PSnames, 0xD00, "PS names module" )
119
- FT_MODERRDEF( Raster, 0xE00, "raster module" )
120
- FT_MODERRDEF( SFNT, 0xF00, "SFNT module" )
121
- FT_MODERRDEF( Smooth, 0x1000, "smooth raster module" )
122
- FT_MODERRDEF( TrueType, 0x1100, "TrueType module" )
123
- FT_MODERRDEF( Type1, 0x1200, "Type 1 module" )
124
- FT_MODERRDEF( Type42, 0x1300, "Type 42 module" )
125
- FT_MODERRDEF( Winfonts, 0x1400, "Windows FON/FNT module" )
108
+ FT_MODERRDEF( Bzip2, 0x300, "Bzip2 module" )
109
+ FT_MODERRDEF( Cache, 0x400, "cache module" )
110
+ FT_MODERRDEF( CFF, 0x500, "CFF module" )
111
+ FT_MODERRDEF( CID, 0x600, "CID module" )
112
+ FT_MODERRDEF( Gzip, 0x700, "Gzip module" )
113
+ FT_MODERRDEF( LZW, 0x800, "LZW module" )
114
+ FT_MODERRDEF( OTvalid, 0x900, "OpenType validation module" )
115
+ FT_MODERRDEF( PCF, 0xA00, "PCF module" )
116
+ FT_MODERRDEF( PFR, 0xB00, "PFR module" )
117
+ FT_MODERRDEF( PSaux, 0xC00, "PS auxiliary module" )
118
+ FT_MODERRDEF( PShinter, 0xD00, "PS hinter module" )
119
+ FT_MODERRDEF( PSnames, 0xE00, "PS names module" )
120
+ FT_MODERRDEF( Raster, 0xF00, "raster module" )
121
+ FT_MODERRDEF( SFNT, 0x1000, "SFNT module" )
122
+ FT_MODERRDEF( Smooth, 0x1100, "smooth raster module" )
123
+ FT_MODERRDEF( TrueType, 0x1200, "TrueType module" )
124
+ FT_MODERRDEF( Type1, 0x1300, "Type 1 module" )
125
+ FT_MODERRDEF( Type42, 0x1400, "Type 42 module" )
126
+ FT_MODERRDEF( Winfonts, 0x1500, "Windows FON/FNT module" )
126
127
 
127
128
 
128
129
  #ifdef FT_MODERR_END_LIST
@@ -5,7 +5,7 @@
5
5
  /* Support for the FT_Outline type used to store glyph shapes of */
6
6
  /* most scalable font formats (specification). */
7
7
  /* */
8
- /* Copyright 1996-2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010 by */
8
+ /* Copyright 1996-2003, 2005-2012 by */
9
9
  /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10
10
  /* */
11
11
  /* This file is part of the FreeType project, and may only be used, */
@@ -59,6 +59,7 @@ FT_BEGIN_HEADER
59
59
  /* FT_Outline_Translate */
60
60
  /* FT_Outline_Transform */
61
61
  /* FT_Outline_Embolden */
62
+ /* FT_Outline_EmboldenXY */
62
63
  /* FT_Outline_Reverse */
63
64
  /* FT_Outline_Check */
64
65
  /* */
@@ -124,9 +125,9 @@ FT_BEGIN_HEADER
124
125
  /* outline will *not* necessarily be *freed*, when */
125
126
  /* destroying the library, by @FT_Done_FreeType. */
126
127
  /* */
127
- /* numPoints :: The maximal number of points within the outline. */
128
+ /* numPoints :: The maximum number of points within the outline. */
128
129
  /* */
129
- /* numContours :: The maximal number of contours within the outline. */
130
+ /* numContours :: The maximum number of contours within the outline. */
130
131
  /* */
131
132
  /* <Output> */
132
133
  /* anoutline :: A handle to the new outline. */
@@ -227,6 +228,9 @@ FT_BEGIN_HEADER
227
228
  /* <Output> */
228
229
  /* acbox :: The outline's control box. */
229
230
  /* */
231
+ /* <Note> */
232
+ /* See @FT_Glyph_Get_CBox for a discussion of tricky fonts. */
233
+ /* */
230
234
  FT_EXPORT( void )
231
235
  FT_Outline_Get_CBox( const FT_Outline* outline,
232
236
  FT_BBox *acbox );
@@ -332,7 +336,7 @@ FT_BEGIN_HEADER
332
336
  /* handled incorrectly. */
333
337
  /* */
334
338
  /* If you need `better' metrics values you should call */
335
- /* @FT_Outline_Get_CBox ot @FT_Outline_Get_BBox. */
339
+ /* @FT_Outline_Get_CBox or @FT_Outline_Get_BBox. */
336
340
  /* */
337
341
  /* Example call: */
338
342
  /* */
@@ -347,6 +351,23 @@ FT_BEGIN_HEADER
347
351
  FT_Pos strength );
348
352
 
349
353
 
354
+ /*************************************************************************/
355
+ /* */
356
+ /* <Function> */
357
+ /* FT_Outline_EmboldenXY */
358
+ /* */
359
+ /* <Description> */
360
+ /* Embolden an outline. The new outline will be `xstrength' pixels */
361
+ /* wider and `ystrength' pixels higher. Otherwise, it is similar to */
362
+ /* @FT_Outline_Embolden, which uses the same strength in both */
363
+ /* directions. */
364
+ /* */
365
+ FT_EXPORT( FT_Error )
366
+ FT_Outline_EmboldenXY( FT_Outline* outline,
367
+ FT_Pos xstrength,
368
+ FT_Pos ystrength );
369
+
370
+
350
371
  /*************************************************************************/
351
372
  /* */
352
373
  /* <Function> */
@@ -212,6 +212,14 @@ FT_BEGIN_HEADER
212
212
  /* */
213
213
  /* This doesn't change the current renderer for other formats. */
214
214
  /* */
215
+ /* Currently, only the B/W renderer, if compiled with */
216
+ /* FT_RASTER_OPTION_ANTI_ALIASING (providing a 5-levels */
217
+ /* anti-aliasing mode; this option must be set directly in */
218
+ /* `ftraster.c' and is undefined by default) accepts a single tag */
219
+ /* `pal5' to set its gray palette as a character string with */
220
+ /* 5~elements. Consequently, the third and fourth argument are zero */
221
+ /* normally. */
222
+ /* */
215
223
  FT_EXPORT( FT_Error )
216
224
  FT_Set_Renderer( FT_Library library,
217
225
  FT_Renderer renderer,