cairo 1.12.6-x86-mingw32 → 1.12.7-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 (188) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +1 -1
  3. data/NEWS +24 -0
  4. data/README.rdoc +1 -1
  5. data/Rakefile +57 -14
  6. data/ext/cairo/rb_cairo.h +1 -1
  7. data/ext/cairo/rb_cairo_surface.c +2 -0
  8. data/lib/1.9/cairo.so +0 -0
  9. data/lib/2.0/cairo.so +0 -0
  10. data/lib/2.1/cairo.so +0 -0
  11. data/lib/cairo/papers.rb +24 -0
  12. data/test/test_image_surface.rb +28 -0
  13. data/vendor/local/bin/fc-cache.exe +0 -0
  14. data/vendor/local/bin/fc-cat.exe +0 -0
  15. data/vendor/local/bin/fc-list.exe +0 -0
  16. data/vendor/local/bin/fc-match.exe +0 -0
  17. data/vendor/local/bin/fc-pattern.exe +0 -0
  18. data/vendor/local/bin/fc-query.exe +0 -0
  19. data/vendor/local/bin/fc-scan.exe +0 -0
  20. data/vendor/local/bin/fc-validate.exe +0 -0
  21. data/vendor/local/bin/freetype-config +6 -10
  22. data/vendor/local/bin/libcairo-2.dll +0 -0
  23. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  24. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  25. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  26. data/vendor/local/bin/libfreetype-6.dll +0 -0
  27. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  28. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  29. data/vendor/local/bin/libpng-config +1 -1
  30. data/vendor/local/bin/libpng16-16.dll +0 -0
  31. data/vendor/local/bin/libpng16-config +1 -1
  32. data/vendor/local/bin/libxml2-2.dll +0 -0
  33. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  34. data/vendor/local/bin/pngfix.exe +0 -0
  35. data/vendor/local/bin/xmlcatalog.exe +0 -0
  36. data/vendor/local/bin/xmllint.exe +0 -0
  37. data/vendor/local/bin/zlib1.dll +0 -0
  38. data/vendor/local/etc/fonts/conf.d/30-metric-aliases.conf +259 -53
  39. data/vendor/local/etc/fonts/conf.d/30-urw-aliases.conf +4 -20
  40. data/vendor/local/etc/fonts/conf.d/45-latin.conf +16 -0
  41. data/vendor/local/etc/fonts/conf.d/README +3 -3
  42. data/vendor/local/etc/fonts/fonts.conf +1 -1
  43. data/vendor/local/include/cairo/cairo-gobject.h +4 -0
  44. data/vendor/local/include/cairo/cairo-version.h +1 -1
  45. data/vendor/local/include/fontconfig/fcprivate.h +2 -1
  46. data/vendor/local/include/fontconfig/fontconfig.h +7 -3
  47. data/vendor/local/include/freetype2/{freetype/config → config}/ftconfig.h +105 -13
  48. data/vendor/local/include/freetype2/{freetype/config → config}/ftheader.h +71 -58
  49. data/vendor/local/include/freetype2/{freetype/config → config}/ftmodule.h +0 -0
  50. data/vendor/local/include/freetype2/{freetype/config → config}/ftoption.h +41 -35
  51. data/vendor/local/include/freetype2/{freetype/config → config}/ftstdlib.h +0 -0
  52. data/vendor/local/include/freetype2/{freetype/freetype.h → freetype.h} +83 -40
  53. data/vendor/local/include/freetype2/ft2build.h +42 -0
  54. data/vendor/local/include/freetype2/{freetype/ftadvanc.h → ftadvanc.h} +14 -11
  55. data/vendor/local/include/freetype2/{freetype/ftautoh.h → ftautoh.h} +11 -3
  56. data/vendor/local/include/freetype2/{freetype/ftbbox.h → ftbbox.h} +3 -3
  57. data/vendor/local/include/freetype2/{freetype/ftbdf.h → ftbdf.h} +0 -0
  58. data/vendor/local/include/freetype2/{freetype/ftbitmap.h → ftbitmap.h} +4 -4
  59. data/vendor/local/include/freetype2/{freetype/ftbzip2.h → ftbzip2.h} +0 -0
  60. data/vendor/local/include/freetype2/{freetype/ftcache.h → ftcache.h} +4 -87
  61. data/vendor/local/include/freetype2/ftcffdrv.h +254 -0
  62. data/vendor/local/include/freetype2/{freetype/ftchapters.h → ftchapters.h} +4 -16
  63. data/vendor/local/include/freetype2/{freetype/ftcid.h → ftcid.h} +0 -0
  64. data/vendor/local/include/freetype2/{freetype/fterrdef.h → fterrdef.h} +0 -0
  65. data/vendor/local/include/freetype2/{freetype/fterrors.h → fterrors.h} +0 -0
  66. data/vendor/local/include/freetype2/{freetype/ftgasp.h → ftgasp.h} +0 -0
  67. data/vendor/local/include/freetype2/{freetype/ftglyph.h → ftglyph.h} +5 -5
  68. data/vendor/local/include/freetype2/{freetype/ftgxval.h → ftgxval.h} +5 -5
  69. data/vendor/local/include/freetype2/{freetype/ftgzip.h → ftgzip.h} +48 -1
  70. data/vendor/local/include/freetype2/{freetype/ftimage.h → ftimage.h} +20 -11
  71. data/vendor/local/include/freetype2/{freetype/ftincrem.h → ftincrem.h} +0 -0
  72. data/vendor/local/include/freetype2/{freetype/ftlcdfil.h → ftlcdfil.h} +3 -3
  73. data/vendor/local/include/freetype2/{freetype/ftlist.h → ftlist.h} +6 -6
  74. data/vendor/local/include/freetype2/{freetype/ftlzw.h → ftlzw.h} +0 -0
  75. data/vendor/local/include/freetype2/{freetype/ftmac.h → ftmac.h} +3 -3
  76. data/vendor/local/include/freetype2/{freetype/ftmm.h → ftmm.h} +3 -4
  77. data/vendor/local/include/freetype2/{freetype/ftmodapi.h → ftmodapi.h} +15 -8
  78. data/vendor/local/include/freetype2/{freetype/ftmoderr.h → ftmoderr.h} +0 -0
  79. data/vendor/local/include/freetype2/{freetype/ftotval.h → ftotval.h} +3 -3
  80. data/vendor/local/include/freetype2/{freetype/ftoutln.h → ftoutln.h} +16 -7
  81. data/vendor/local/include/freetype2/{freetype/ftpfr.h → ftpfr.h} +0 -0
  82. data/vendor/local/include/freetype2/{freetype/ftrender.h → ftrender.h} +0 -0
  83. data/vendor/local/include/freetype2/{freetype/ftsizes.h → ftsizes.h} +2 -2
  84. data/vendor/local/include/freetype2/{freetype/ftsnames.h → ftsnames.h} +3 -3
  85. data/vendor/local/include/freetype2/{freetype/ftstroke.h → ftstroke.h} +0 -0
  86. data/vendor/local/include/freetype2/{freetype/ftsynth.h → ftsynth.h} +2 -2
  87. data/vendor/local/include/freetype2/{freetype/ftsystem.h → ftsystem.h} +0 -0
  88. data/vendor/local/include/freetype2/{freetype/fttrigon.h → fttrigon.h} +0 -0
  89. data/vendor/local/include/freetype2/ftttdrv.h +170 -0
  90. data/vendor/local/include/freetype2/{freetype/fttypes.h → fttypes.h} +3 -3
  91. data/vendor/local/include/freetype2/{freetype/ftwinfnt.h → ftwinfnt.h} +4 -3
  92. data/vendor/local/include/freetype2/{freetype/ftxf86.h → ftxf86.h} +2 -2
  93. data/vendor/local/include/freetype2/{freetype/t1tables.h → t1tables.h} +0 -0
  94. data/vendor/local/include/freetype2/{freetype/ttnameid.h → ttnameid.h} +2 -2
  95. data/vendor/local/include/freetype2/{freetype/tttables.h → tttables.h} +24 -14
  96. data/vendor/local/include/freetype2/{freetype/tttags.h → tttags.h} +5 -1
  97. data/vendor/local/include/freetype2/{freetype/ttunpat.h → ttunpat.h} +0 -0
  98. data/vendor/local/include/libpng16/png.h +30 -12
  99. data/vendor/local/include/libpng16/pngconf.h +2 -1
  100. data/vendor/local/include/libpng16/pnglibconf.h +3 -3
  101. data/vendor/local/include/pixman-1/pixman-version.h +3 -3
  102. data/vendor/local/include/pixman-1/pixman.h +1 -1
  103. data/vendor/local/include/png.h +30 -12
  104. data/vendor/local/include/pngconf.h +2 -1
  105. data/vendor/local/include/pnglibconf.h +3 -3
  106. data/vendor/local/lib/fontconfig.def +2 -1
  107. data/vendor/local/lib/libcairo-gobject.a +0 -0
  108. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  109. data/vendor/local/lib/libcairo-gobject.la +3 -3
  110. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  111. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  112. data/vendor/local/lib/libcairo-script-interpreter.la +3 -3
  113. data/vendor/local/lib/libcairo.a +0 -0
  114. data/vendor/local/lib/libcairo.dll.a +0 -0
  115. data/vendor/local/lib/libcairo.la +3 -3
  116. data/vendor/local/lib/libfontconfig.a +0 -0
  117. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  118. data/vendor/local/lib/libfontconfig.la +3 -3
  119. data/vendor/local/lib/libfreetype.a +0 -0
  120. data/vendor/local/lib/libfreetype.dll.a +0 -0
  121. data/vendor/local/lib/libfreetype.la +3 -3
  122. data/vendor/local/lib/libpixman-1.a +0 -0
  123. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  124. data/vendor/local/lib/libpixman-1.la +4 -4
  125. data/vendor/local/lib/libpng.a +0 -0
  126. data/vendor/local/lib/libpng.dll.a +0 -0
  127. data/vendor/local/lib/libpng.la +2 -2
  128. data/vendor/local/lib/libpng16.a +0 -0
  129. data/vendor/local/lib/libpng16.dll.a +0 -0
  130. data/vendor/local/lib/libpng16.la +2 -2
  131. data/vendor/local/lib/libxml2.a +0 -0
  132. data/vendor/local/lib/libxml2.dll.a +0 -0
  133. data/vendor/local/lib/libz.a +0 -0
  134. data/vendor/local/lib/libz.dll.a +0 -0
  135. data/vendor/local/lib/pkgconfig/cairo-fc.pc +1 -1
  136. data/vendor/local/lib/pkgconfig/cairo-ft.pc +1 -1
  137. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +1 -1
  138. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +1 -1
  139. data/vendor/local/lib/pkgconfig/cairo-png.pc +1 -1
  140. data/vendor/local/lib/pkgconfig/cairo-ps.pc +1 -1
  141. data/vendor/local/lib/pkgconfig/cairo-script.pc +1 -1
  142. data/vendor/local/lib/pkgconfig/cairo-svg.pc +1 -1
  143. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +1 -1
  144. data/vendor/local/lib/pkgconfig/cairo-win32.pc +1 -1
  145. data/vendor/local/lib/pkgconfig/cairo.pc +3 -3
  146. data/vendor/local/lib/pkgconfig/fontconfig.pc +6 -4
  147. data/vendor/local/lib/pkgconfig/freetype2.pc +4 -4
  148. data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
  149. data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
  150. data/vendor/local/lib/pkgconfig/pixman-1.pc +1 -1
  151. data/vendor/local/share/fontconfig/conf.avail/30-metric-aliases.conf +259 -53
  152. data/vendor/local/share/fontconfig/conf.avail/30-urw-aliases.conf +4 -20
  153. data/vendor/local/share/fontconfig/conf.avail/45-latin.conf +16 -0
  154. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +1 -1
  155. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +1 -1
  156. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +1 -1
  157. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +3 -3
  158. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +3 -3
  159. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +6 -6
  160. data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +3 -3
  161. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +8 -8
  162. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +3 -3
  163. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +14 -14
  164. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +1 -1
  165. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +5 -5
  166. data/vendor/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html +0 -8
  167. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +1 -1
  168. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +1 -1
  169. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +3 -3
  170. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +4 -4
  171. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +2 -2
  172. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +31 -31
  173. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +11 -11
  174. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +13 -13
  175. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +8 -8
  176. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +11 -11
  177. data/vendor/local/share/gtk-doc/html/cairo/index.html +1 -1
  178. data/vendor/local/share/license/fontconfig/README +83 -2
  179. data/vendor/local/share/license/freetype/README +5 -5
  180. data/vendor/local/share/license/freetype/README.git +5 -1
  181. data/vendor/local/share/license/libpng/README +18 -18
  182. data/vendor/local/share/man/man3/libpng.3 +136 -54
  183. data/vendor/local/share/man/man3/libpngpf.3 +2 -2
  184. data/vendor/local/share/man/man5/png.5 +1 -1
  185. metadata +74 -80
  186. data/vendor/local/etc/fonts/fonts.conf.bak +0 -155
  187. data/vendor/local/include/freetype2/freetype/ftcffdrv.h +0 -150
  188. data/vendor/local/include/ft2build.h +0 -61
@@ -1,7 +1,7 @@
1
1
  /***************************************************************************/
2
2
  /* */
3
3
  /* This file defines the structure of the FreeType reference. */
4
- /* It is used by the python script which generates the HTML files. */
4
+ /* It is used by the python script that generates the HTML files. */
5
5
  /* */
6
6
  /***************************************************************************/
7
7
 
@@ -67,27 +67,15 @@
67
67
  /***************************************************************************/
68
68
  /* */
69
69
  /* <Chapter> */
70
- /* auto_hinter */
70
+ /* module_specific */
71
71
  /* */
72
72
  /* <Title> */
73
- /* The Auto-Hinter */
73
+ /* Controlling FreeType Modules */
74
74
  /* */
75
75
  /* <Sections> */
76
76
  /* auto_hinter */
77
- /* */
78
- /***************************************************************************/
79
-
80
-
81
- /***************************************************************************/
82
- /* */
83
- /* <Chapter> */
84
- /* cff_driver */
85
- /* */
86
- /* <Title> */
87
- /* The CFF Driver */
88
- /* */
89
- /* <Sections> */
90
77
  /* cff_driver */
78
+ /* tt_driver */
91
79
  /* */
92
80
  /***************************************************************************/
93
81
 
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType convenience functions to handle glyphs (specification). */
6
6
  /* */
7
- /* Copyright 1996-2003, 2006, 2008, 2009, 2011 by */
7
+ /* Copyright 1996-2003, 2006, 2008, 2009, 2011, 2013 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, */
@@ -358,17 +358,17 @@ FT_BEGIN_HEADER
358
358
  /* outline's points, including Bézier control points. Though it */
359
359
  /* coincides with the exact bounding box for most glyphs, it can be */
360
360
  /* slightly larger in some situations (like when rotating an outline */
361
- /* which contains Bézier outside arcs). */
361
+ /* that contains Bézier outside arcs). */
362
362
  /* */
363
363
  /* Computing the control box is very fast, while getting the bounding */
364
364
  /* box can take much more time as it needs to walk over all segments */
365
365
  /* and arcs in the outline. To get the latter, you can use the */
366
- /* `ftbbox' component which is dedicated to this single task. */
366
+ /* `ftbbox' component, which is dedicated to this single task. */
367
367
  /* */
368
368
  /* <Input> */
369
369
  /* glyph :: A handle to the source glyph object. */
370
370
  /* */
371
- /* mode :: The mode which indicates how to interpret the returned */
371
+ /* mode :: The mode that indicates how to interpret the returned */
372
372
  /* bounding box values. */
373
373
  /* */
374
374
  /* <Output> */
@@ -388,7 +388,7 @@ FT_BEGIN_HEADER
388
388
  /* @FT_LOAD_NO_SCALE, the resulting CBox is meaningless. To get */
389
389
  /* reasonable values for the CBox it is necessary to load the glyph */
390
390
  /* at a large ppem value (so that the hinting instructions can */
391
- /* properly shift and scale the subglyphs), then extracting the CBox */
391
+ /* properly shift and scale the subglyphs), then extracting the CBox, */
392
392
  /* which can be eventually converted back to font units. */
393
393
  /* */
394
394
  /* Note that the maximum coordinates are exclusive, which means that */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType API for validating TrueTypeGX/AAT tables (specification). */
6
6
  /* */
7
- /* Copyright 2004, 2005, 2006 by */
7
+ /* Copyright 2004-2006, 2013 by */
8
8
  /* Masatake YAMATO, Redhat K.K, */
9
9
  /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10
10
  /* */
@@ -180,7 +180,7 @@ FT_BEGIN_HEADER
180
180
  *
181
181
  * @description:
182
182
  * Validate various TrueTypeGX tables to assure that all offsets and
183
- * indices are valid. The idea is that a higher-level library which
183
+ * indices are valid. The idea is that a higher-level library that
184
184
  * actually does the text layout can access those tables without
185
185
  * error checking (which can be quite time consuming).
186
186
  *
@@ -189,7 +189,7 @@ FT_BEGIN_HEADER
189
189
  * A handle to the input face.
190
190
  *
191
191
  * validation_flags ::
192
- * A bit field which specifies the tables to be validated. See
192
+ * A bit field that specifies the tables to be validated. See
193
193
  * @FT_VALIDATE_GXXXX for possible values.
194
194
  *
195
195
  * table_length ::
@@ -286,7 +286,7 @@ FT_BEGIN_HEADER
286
286
  *
287
287
  * @description:
288
288
  * Validate classic (16-bit format) kern table to assure that the offsets
289
- * and indices are valid. The idea is that a higher-level library which
289
+ * and indices are valid. The idea is that a higher-level library that
290
290
  * actually does the text layout can access those tables without error
291
291
  * checking (which can be quite time consuming).
292
292
  *
@@ -299,7 +299,7 @@ FT_BEGIN_HEADER
299
299
  * A handle to the input face.
300
300
  *
301
301
  * validation_flags ::
302
- * A bit field which specifies the dialect to be validated. See
302
+ * A bit field that specifies the dialect to be validated. See
303
303
  * @FT_VALIDATE_CKERNXXX for possible values.
304
304
  *
305
305
  * @output:
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* Gzip-compressed stream support. */
6
6
  /* */
7
- /* Copyright 2002, 2003, 2004, 2006 by */
7
+ /* Copyright 2002-2004, 2006, 2013 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, */
@@ -91,6 +91,53 @@ FT_BEGIN_HEADER
91
91
  FT_Stream_OpenGzip( FT_Stream stream,
92
92
  FT_Stream source );
93
93
 
94
+
95
+ /************************************************************************
96
+ *
97
+ * @function:
98
+ * FT_Gzip_Uncompress
99
+ *
100
+ * @description:
101
+ * Decompress a zipped input buffer into an output buffer. This function
102
+ * is modeled after zlib's `uncompress' function.
103
+ *
104
+ * @input:
105
+ * memory ::
106
+ * A FreeType memory handle.
107
+ *
108
+ * input ::
109
+ * The input buffer.
110
+ *
111
+ * input_len ::
112
+ * The length of the input buffer.
113
+ *
114
+ * @output:
115
+ * output::
116
+ * The output buffer.
117
+ *
118
+ * @inout:
119
+ * output_len ::
120
+ * Before calling the function, this is the the total size of the
121
+ * output buffer, which must be large enough to hold the entire
122
+ * uncompressed data (so the size of the uncompressed data must be
123
+ * known in advance). After calling the function, `output_len' is the
124
+ * size of the used data in `output'.
125
+ *
126
+ * @return:
127
+ * FreeType error code. 0~means success.
128
+ *
129
+ * @note:
130
+ * This function may return `FT_Err_Unimplemented_Feature' if your build
131
+ * of FreeType was not compiled with zlib support.
132
+ */
133
+ FT_EXPORT( FT_Error )
134
+ FT_Gzip_Uncompress( FT_Memory memory,
135
+ FT_Byte* output,
136
+ FT_ULong* output_len,
137
+ const FT_Byte* input,
138
+ FT_ULong input_len );
139
+
140
+
94
141
  /* */
95
142
 
96
143
 
@@ -5,8 +5,7 @@
5
5
  /* FreeType glyph image formats and default raster interface */
6
6
  /* (specification). */
7
7
  /* */
8
- /* Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, */
9
- /* 2010 by */
8
+ /* Copyright 1996-2010, 2013 by */
10
9
  /* David Turner, Robert Wilhelm, and Werner Lemberg. */
11
10
  /* */
12
11
  /* This file is part of the FreeType project, and may only be used, */
@@ -169,6 +168,15 @@ FT_BEGIN_HEADER
169
168
  /* times taller than the original glyph image. See also */
170
169
  /* @FT_RENDER_MODE_LCD_V. */
171
170
  /* */
171
+ /* FT_PIXEL_MODE_BGRA :: */
172
+ /* An image with four 8-bit channels per pixel, representing a */
173
+ /* color image (such as emoticons) with alpha channel. For each */
174
+ /* pixel, the format is BGRA, which means, the blue channel comes */
175
+ /* first in memory. The color channels are pre-multiplied and in */
176
+ /* the sRGB colorspace. For example, full red at half-translucent */
177
+ /* opacity will be represented as `00,00,80,80', not `00,00,FF,80'. */
178
+ /* See also @FT_LOAD_COLOR. */
179
+ /* */
172
180
  typedef enum FT_Pixel_Mode_
173
181
  {
174
182
  FT_PIXEL_MODE_NONE = 0,
@@ -178,6 +186,7 @@ FT_BEGIN_HEADER
178
186
  FT_PIXEL_MODE_GRAY4,
179
187
  FT_PIXEL_MODE_LCD,
180
188
  FT_PIXEL_MODE_LCD_V,
189
+ FT_PIXEL_MODE_BGRA,
181
190
 
182
191
  FT_PIXEL_MODE_MAX /* do not remove */
183
192
 
@@ -546,7 +555,7 @@ FT_BEGIN_HEADER
546
555
  /* <Input> */
547
556
  /* to :: A pointer to the target point of the `move to'. */
548
557
  /* */
549
- /* user :: A typeless pointer which is passed from the caller of the */
558
+ /* user :: A typeless pointer, which is passed from the caller of the */
550
559
  /* decomposition function. */
551
560
  /* */
552
561
  /* <Return> */
@@ -573,7 +582,7 @@ FT_BEGIN_HEADER
573
582
  /* <Input> */
574
583
  /* to :: A pointer to the target point of the `line to'. */
575
584
  /* */
576
- /* user :: A typeless pointer which is passed from the caller of the */
585
+ /* user :: A typeless pointer, which is passed from the caller of the */
577
586
  /* decomposition function. */
578
587
  /* */
579
588
  /* <Return> */
@@ -604,7 +613,7 @@ FT_BEGIN_HEADER
604
613
  /* */
605
614
  /* to :: A pointer to the target end point of the conic arc. */
606
615
  /* */
607
- /* user :: A typeless pointer which is passed from the caller of */
616
+ /* user :: A typeless pointer, which is passed from the caller of */
608
617
  /* the decomposition function. */
609
618
  /* */
610
619
  /* <Return> */
@@ -636,7 +645,7 @@ FT_BEGIN_HEADER
636
645
  /* */
637
646
  /* to :: A pointer to the target end point. */
638
647
  /* */
639
- /* user :: A typeless pointer which is passed from the caller of */
648
+ /* user :: A typeless pointer, which is passed from the caller of */
640
649
  /* the decomposition function. */
641
650
  /* */
642
651
  /* <Return> */
@@ -827,8 +836,8 @@ FT_BEGIN_HEADER
827
836
  /* a a bitmap. This section contains the public API for rasters. */
828
837
  /* */
829
838
  /* Note that in FreeType 2, all rasters are now encapsulated within */
830
- /* specific modules called `renderers'. See `freetype/ftrender.h' for */
831
- /* more details on renderers. */
839
+ /* specific modules called `renderers'. See `ftrender.h' for more */
840
+ /* details on renderers. */
832
841
  /* */
833
842
  /*************************************************************************/
834
843
 
@@ -882,8 +891,8 @@ FT_BEGIN_HEADER
882
891
  /* */
883
892
  /* <Note> */
884
893
  /* This structure is used by the span drawing callback type named */
885
- /* @FT_SpanFunc which takes the y~coordinate of the span as a */
886
- /* a parameter. */
894
+ /* @FT_SpanFunc that takes the y~coordinate of the span as a */
895
+ /* parameter. */
887
896
  /* */
888
897
  /* The coverage value is always between 0 and 255. If you want less */
889
898
  /* gray values, the callback function has to reduce them. */
@@ -1256,7 +1265,7 @@ FT_BEGIN_HEADER
1256
1265
  /* XXX: For now, the standard raster doesn't support direct */
1257
1266
  /* composition but this should change for the final release (see */
1258
1267
  /* the files `demos/src/ftgrays.c' and `demos/src/ftgrays2.c' */
1259
- /* for examples of distinct implementations which support direct */
1268
+ /* for examples of distinct implementations that support direct */
1260
1269
  /* composition). */
1261
1270
  /* */
1262
1271
  typedef int
@@ -5,7 +5,7 @@
5
5
  /* FreeType API for color filtering of subpixel bitmap glyphs */
6
6
  /* (specification). */
7
7
  /* */
8
- /* Copyright 2006, 2007, 2008, 2010 by */
8
+ /* Copyright 2006-2008, 2010, 2013 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, */
@@ -45,9 +45,9 @@ FT_BEGIN_HEADER
45
45
  *
46
46
  * @description:
47
47
  * The @FT_Library_SetLcdFilter API can be used to specify a low-pass
48
- * filter which is then applied to LCD-optimized bitmaps generated
48
+ * filter, which is then applied to LCD-optimized bitmaps generated
49
49
  * through @FT_Render_Glyph. This is useful to reduce color fringes
50
- * which would occur with unfiltered rendering.
50
+ * that would occur with unfiltered rendering.
51
51
  *
52
52
  * Note that no filter is active by default, and that this function is
53
53
  * *not* implemented in default builds of the library. You need to
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* Generic list support for FreeType (specification). */
6
6
  /* */
7
- /* Copyright 1996-2001, 2003, 2007, 2010 by */
7
+ /* Copyright 1996-2001, 2003, 2007, 2010, 2013 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, */
@@ -173,7 +173,7 @@ FT_BEGIN_HEADER
173
173
  /* FT_List_Iterator */
174
174
  /* */
175
175
  /* <Description> */
176
- /* An FT_List iterator function which is called during a list parse */
176
+ /* An FT_List iterator function that is called during a list parse */
177
177
  /* by @FT_List_Iterate. */
178
178
  /* */
179
179
  /* <Input> */
@@ -200,7 +200,7 @@ FT_BEGIN_HEADER
200
200
  /* <Input> */
201
201
  /* list :: A handle to the list. */
202
202
  /* iterator :: An iterator function, called on each node of the list. */
203
- /* user :: A user-supplied field which is passed as the second */
203
+ /* user :: A user-supplied field that is passed as the second */
204
204
  /* argument to the iterator. */
205
205
  /* */
206
206
  /* <Return> */
@@ -218,7 +218,7 @@ FT_BEGIN_HEADER
218
218
  /* FT_List_Destructor */
219
219
  /* */
220
220
  /* <Description> */
221
- /* An @FT_List iterator function which is called during a list */
221
+ /* An @FT_List iterator function that is called during a list */
222
222
  /* finalization by @FT_List_Finalize to destroy all elements in a */
223
223
  /* given list. */
224
224
  /* */
@@ -250,9 +250,9 @@ FT_BEGIN_HEADER
250
250
  /* destroy :: A list destructor that will be applied to each element */
251
251
  /* of the list. */
252
252
  /* */
253
- /* memory :: The current memory object which handles deallocation. */
253
+ /* memory :: The current memory object that handles deallocation. */
254
254
  /* */
255
- /* user :: A user-supplied field which is passed as the last */
255
+ /* user :: A user-supplied field that is passed as the last */
256
256
  /* argument to the destructor. */
257
257
  /* */
258
258
  /* <Note> */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* Additional Mac-specific API. */
6
6
  /* */
7
- /* Copyright 1996-2001, 2004, 2006, 2007 by */
7
+ /* Copyright 1996-2001, 2004, 2006, 2007, 2013 by */
8
8
  /* Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg. */
9
9
  /* */
10
10
  /* This file is part of the FreeType project, and may only be used, */
@@ -18,7 +18,7 @@
18
18
 
19
19
  /***************************************************************************/
20
20
  /* */
21
- /* NOTE: Include this file after <freetype/freetype.h> and after any */
21
+ /* NOTE: Include this file after FT_FREETYPE_H and after any */
22
22
  /* Mac-specific headers (because this header uses Mac types such as */
23
23
  /* Handle, FSSpec, FSRef, etc.) */
24
24
  /* */
@@ -168,7 +168,7 @@ FT_BEGIN_HEADER
168
168
  /* */
169
169
  /* <Description> */
170
170
  /* Return a pathname of the disk file and face index for given font */
171
- /* name which is handled by ATS framework. */
171
+ /* name that is handled by ATS framework. */
172
172
  /* */
173
173
  /* <Input> */
174
174
  /* fontName :: Mac OS name of the font in ATS framework. */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType Multiple Master font interface (specification). */
6
6
  /* */
7
- /* Copyright 1996-2001, 2003, 2004, 2006, 2009 by */
7
+ /* Copyright 1996-2001, 2003, 2004, 2006, 2009, 2013 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, */
@@ -196,7 +196,7 @@ FT_BEGIN_HEADER
196
196
  /* number of designs). */
197
197
  /* */
198
198
  /* num_namedstyles :: The number of named styles; only meaningful for */
199
- /* GX which allows certain design coordinates to */
199
+ /* GX that allows certain design coordinates to */
200
200
  /* have a string ID (in the `name' table) */
201
201
  /* associated with them. The font can tell the */
202
202
  /* user that, for example, Weight=1.5 is `Bold'. */
@@ -258,8 +258,7 @@ FT_BEGIN_HEADER
258
258
  /* */
259
259
  /* <Output> */
260
260
  /* amaster :: The Multiple Masters/GX var descriptor. */
261
- /* Allocates a data structure, which the user must free */
262
- /* (a single call to FT_FREE will do it). */
261
+ /* Allocates a data structure, which the user must free. */
263
262
  /* */
264
263
  /* <Return> */
265
264
  /* FreeType error code. 0~means success. */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType modules public interface (specification). */
6
6
  /* */
7
- /* Copyright 1996-2003, 2006, 2008-2010, 2012 by */
7
+ /* Copyright 1996-2003, 2006, 2008-2010, 2012, 2013 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, */
@@ -298,7 +298,7 @@ FT_BEGIN_HEADER
298
298
  * Note that only a few modules have properties.
299
299
  *
300
300
  * value ::
301
- * A generic pointer to a variable or structure which gives the new
301
+ * A generic pointer to a variable or structure that gives the new
302
302
  * value of the property. The exact definition of `value' is
303
303
  * dependent on the property; see the `Synopsis' subsection of the
304
304
  * module's documentation.
@@ -322,14 +322,21 @@ FT_BEGIN_HEADER
322
322
  * FT_Property_Set( library, "foo", "bar", &bar );
323
323
  * }
324
324
  *
325
+ * Note that the FreeType Cache sub-system doesn't recognize module
326
+ * property changes. To avoid glyph lookup confusion within the cache
327
+ * you should call @FTC_Manager_Reset to completely flush the cache if
328
+ * a module property gets changed after @FTC_Manager_New has been
329
+ * called.
330
+ *
325
331
  * It is not possible to set properties of the FreeType Cache
326
- * sub-system with FT_Property_Set; use @FTC_Property_Set instead.
332
+ * sub-system itself with FT_Property_Set; use @FTC_Property_Set
333
+ * instead.
327
334
  *
328
335
  * @since:
329
336
  * 2.4.11
330
337
  *
331
338
  */
332
- FT_Error
339
+ FT_EXPORT( FT_Error )
333
340
  FT_Property_Set( FT_Library library,
334
341
  const FT_String* module_name,
335
342
  const FT_String* property_name,
@@ -357,7 +364,7 @@ FT_BEGIN_HEADER
357
364
  *
358
365
  * @inout:
359
366
  * value ::
360
- * A generic pointer to a variable or structure which gives the
367
+ * A generic pointer to a variable or structure that gives the
361
368
  * value of the property. The exact definition of `value' is
362
369
  * dependent on the property; see the `Synopsis' subsection of the
363
370
  * module's documentation.
@@ -393,7 +400,7 @@ FT_BEGIN_HEADER
393
400
  * 2.4.11
394
401
  *
395
402
  */
396
- FT_Error
403
+ FT_EXPORT( FT_Error )
397
404
  FT_Property_Get( FT_Library library,
398
405
  const FT_String* module_name,
399
406
  const FT_String* property_name,
@@ -411,7 +418,7 @@ FT_BEGIN_HEADER
411
418
  /* @FT_Done_Library then only destroys a library if the counter is~1, */
412
419
  /* otherwise it simply decrements the counter. */
413
420
  /* */
414
- /* This function helps in managing life-cycles of structures which */
421
+ /* This function helps in managing life-cycles of structures that */
415
422
  /* reference @FT_Library objects. */
416
423
  /* */
417
424
  /* <Input> */
@@ -577,7 +584,7 @@ FT_BEGIN_HEADER
577
584
  * The library implements a bytecode interpreter that doesn't
578
585
  * support the patented operations of the TrueType virtual machine.
579
586
  *
580
- * Its main use is to load certain Asian fonts which position and
587
+ * Its main use is to load certain Asian fonts that position and
581
588
  * scale glyph components with bytecode instructions. It produces
582
589
  * bad output for most other fonts.
583
590
  *