cairo 1.14.1-x64-mingw32 → 1.14.2-x64-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 (215) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS +21 -0
  3. data/Rakefile +17 -6
  4. data/ext/cairo/cairo.def +1 -0
  5. data/ext/cairo/extconf.rb +23 -10
  6. data/ext/cairo/rb_cairo.c +3 -0
  7. data/ext/cairo/rb_cairo.h +3 -3
  8. data/ext/cairo/rb_cairo_context.c +1 -1
  9. data/ext/cairo/rb_cairo_io.c +4 -0
  10. data/ext/cairo/rb_cairo_io.h +2 -0
  11. data/ext/cairo/rb_cairo_pattern.c +4 -4
  12. data/ext/cairo/rb_cairo_private.h +2 -0
  13. data/ext/cairo/rb_cairo_surface.c +64 -232
  14. data/lib/2.0/cairo.so +0 -0
  15. data/lib/2.1/cairo.so +0 -0
  16. data/lib/2.2/cairo.so +0 -0
  17. data/lib/cairo.rb +20 -19
  18. data/lib/cairo/region.rb +14 -0
  19. data/test/test_region.rb +26 -0
  20. data/vendor/local/bin/fc-cache.exe +0 -0
  21. data/vendor/local/bin/fc-cat.exe +0 -0
  22. data/vendor/local/bin/fc-list.exe +0 -0
  23. data/vendor/local/bin/fc-match.exe +0 -0
  24. data/vendor/local/bin/fc-pattern.exe +0 -0
  25. data/vendor/local/bin/fc-query.exe +0 -0
  26. data/vendor/local/bin/fc-scan.exe +0 -0
  27. data/vendor/local/bin/fc-validate.exe +0 -0
  28. data/vendor/local/bin/freetype-config +2 -2
  29. data/vendor/local/bin/libcairo-2.dll +0 -0
  30. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  31. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  32. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  33. data/vendor/local/bin/libfreetype-6.dll +0 -0
  34. data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
  35. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  36. data/vendor/local/bin/libpng-config +1 -1
  37. data/vendor/local/bin/libpng16-16.dll +0 -0
  38. data/vendor/local/bin/libpng16-config +1 -1
  39. data/vendor/local/bin/libstdc++-6.dll +0 -0
  40. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  41. data/vendor/local/bin/libxml2-2.dll +0 -0
  42. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  43. data/vendor/local/bin/pngfix.exe +0 -0
  44. data/vendor/local/bin/xmlcatalog.exe +0 -0
  45. data/vendor/local/bin/xmllint.exe +0 -0
  46. data/vendor/local/bin/zlib1.dll +0 -0
  47. data/vendor/local/include/cairo/cairo-version.h +1 -1
  48. data/vendor/local/include/freetype2/config/ftconfig.h +19 -2
  49. data/vendor/local/include/freetype2/config/ftheader.h +7 -5
  50. data/vendor/local/include/freetype2/config/ftoption.h +9 -22
  51. data/vendor/local/include/freetype2/config/ftstdlib.h +2 -3
  52. data/vendor/local/include/freetype2/freetype.h +38 -17
  53. data/vendor/local/include/freetype2/ft2build.h +1 -1
  54. data/vendor/local/include/freetype2/ftadvanc.h +2 -2
  55. data/vendor/local/include/freetype2/ftautoh.h +50 -2
  56. data/vendor/local/include/freetype2/ftbbox.h +1 -1
  57. data/vendor/local/include/freetype2/ftbdf.h +1 -1
  58. data/vendor/local/include/freetype2/ftbitmap.h +11 -3
  59. data/vendor/local/include/freetype2/ftbzip2.h +1 -1
  60. data/vendor/local/include/freetype2/ftcache.h +3 -3
  61. data/vendor/local/include/freetype2/ftcffdrv.h +1 -1
  62. data/vendor/local/include/freetype2/ftcid.h +2 -1
  63. data/vendor/local/include/freetype2/fterrdef.h +1 -1
  64. data/vendor/local/include/freetype2/fterrors.h +1 -1
  65. data/vendor/local/include/freetype2/{ftxf86.h → ftfntfmt.h} +22 -14
  66. data/vendor/local/include/freetype2/ftgasp.h +1 -1
  67. data/vendor/local/include/freetype2/ftglyph.h +1 -1
  68. data/vendor/local/include/freetype2/ftgxval.h +1 -1
  69. data/vendor/local/include/freetype2/ftgzip.h +1 -1
  70. data/vendor/local/include/freetype2/ftimage.h +7 -13
  71. data/vendor/local/include/freetype2/ftincrem.h +1 -1
  72. data/vendor/local/include/freetype2/ftlcdfil.h +2 -2
  73. data/vendor/local/include/freetype2/ftlist.h +1 -1
  74. data/vendor/local/include/freetype2/ftlzw.h +1 -1
  75. data/vendor/local/include/freetype2/ftmac.h +1 -1
  76. data/vendor/local/include/freetype2/ftmm.h +17 -11
  77. data/vendor/local/include/freetype2/ftmodapi.h +4 -2
  78. data/vendor/local/include/freetype2/ftmoderr.h +1 -1
  79. data/vendor/local/include/freetype2/ftotval.h +1 -1
  80. data/vendor/local/include/freetype2/ftoutln.h +1 -1
  81. data/vendor/local/include/freetype2/ftpfr.h +1 -1
  82. data/vendor/local/include/freetype2/ftrender.h +3 -8
  83. data/vendor/local/include/freetype2/ftsizes.h +1 -1
  84. data/vendor/local/include/freetype2/ftsnames.h +1 -1
  85. data/vendor/local/include/freetype2/ftstroke.h +1 -1
  86. data/vendor/local/include/freetype2/ftsynth.h +5 -3
  87. data/vendor/local/include/freetype2/ftsystem.h +10 -1
  88. data/vendor/local/include/freetype2/fttrigon.h +1 -1
  89. data/vendor/local/include/freetype2/ftttdrv.h +85 -22
  90. data/vendor/local/include/freetype2/fttypes.h +1 -1
  91. data/vendor/local/include/freetype2/ftwinfnt.h +3 -3
  92. data/vendor/local/include/freetype2/t1tables.h +4 -3
  93. data/vendor/local/include/freetype2/ttnameid.h +116 -116
  94. data/vendor/local/include/freetype2/tttables.h +2 -2
  95. data/vendor/local/include/freetype2/tttags.h +1 -1
  96. data/vendor/local/include/freetype2/ttunpat.h +1 -1
  97. data/vendor/local/include/libpng16/png.h +63 -80
  98. data/vendor/local/include/libpng16/pngconf.h +8 -30
  99. data/vendor/local/include/libpng16/pnglibconf.h +10 -4
  100. data/vendor/local/include/png.h +63 -80
  101. data/vendor/local/include/pngconf.h +8 -30
  102. data/vendor/local/include/pnglibconf.h +10 -4
  103. data/vendor/local/lib/libcairo-gobject.a +0 -0
  104. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  105. data/vendor/local/lib/libcairo-gobject.la +2 -2
  106. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  107. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  108. data/vendor/local/lib/libcairo-script-interpreter.la +2 -2
  109. data/vendor/local/lib/libcairo.a +0 -0
  110. data/vendor/local/lib/libcairo.dll.a +0 -0
  111. data/vendor/local/lib/libcairo.la +2 -2
  112. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  113. data/vendor/local/lib/libfreetype.a +0 -0
  114. data/vendor/local/lib/libfreetype.dll.a +0 -0
  115. data/vendor/local/lib/libfreetype.la +4 -4
  116. data/vendor/local/lib/libpixman-1.a +0 -0
  117. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  118. data/vendor/local/lib/libpng.a +0 -0
  119. data/vendor/local/lib/libpng.dll.a +0 -0
  120. data/vendor/local/lib/libpng.la +4 -4
  121. data/vendor/local/lib/libpng16.a +0 -0
  122. data/vendor/local/lib/libpng16.dll.a +0 -0
  123. data/vendor/local/lib/libpng16.la +4 -4
  124. data/vendor/local/lib/libxml2.a +0 -0
  125. data/vendor/local/lib/libxml2.dll.a +0 -0
  126. data/vendor/local/lib/libz.a +0 -0
  127. data/vendor/local/lib/libz.dll.a +0 -0
  128. data/vendor/local/lib/pkgconfig/cairo-fc.pc +1 -1
  129. data/vendor/local/lib/pkgconfig/cairo-ft.pc +1 -1
  130. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +1 -1
  131. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +1 -1
  132. data/vendor/local/lib/pkgconfig/cairo-png.pc +1 -1
  133. data/vendor/local/lib/pkgconfig/cairo-ps.pc +1 -1
  134. data/vendor/local/lib/pkgconfig/cairo-script.pc +1 -1
  135. data/vendor/local/lib/pkgconfig/cairo-svg.pc +1 -1
  136. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +1 -1
  137. data/vendor/local/lib/pkgconfig/cairo-win32.pc +1 -1
  138. data/vendor/local/lib/pkgconfig/cairo.pc +1 -1
  139. data/vendor/local/lib/pkgconfig/freetype2.pc +1 -1
  140. data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
  141. data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
  142. data/vendor/local/share/aclocal/freetype2.m4 +1 -1
  143. data/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +12 -12
  144. data/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +12 -12
  145. data/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +12 -12
  146. data/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +13 -13
  147. data/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +12 -12
  148. data/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +35 -35
  149. data/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +10 -10
  150. data/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +11 -11
  151. data/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +13 -13
  152. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +294 -225
  153. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +387 -269
  154. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +432 -302
  155. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +325 -217
  156. data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +298 -193
  157. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +1121 -812
  158. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +513 -383
  159. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html +126 -83
  160. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +172 -119
  161. data/vendor/local/share/gtk-doc/html/cairo/cairo-Raster-Sources.html +581 -372
  162. data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +179 -130
  163. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +888 -539
  164. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +287 -192
  165. data/vendor/local/share/gtk-doc/html/cairo/cairo-Script-Surfaces.html +374 -231
  166. data/vendor/local/share/gtk-doc/html/cairo/cairo-Transformations.html +395 -219
  167. data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +125 -75
  168. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +630 -464
  169. data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +225 -200
  170. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +336 -214
  171. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +277 -186
  172. data/vendor/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html +495 -350
  173. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +557 -362
  174. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +158 -111
  175. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +655 -441
  176. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +389 -280
  177. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +667 -451
  178. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +579 -351
  179. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +2006 -1545
  180. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +892 -618
  181. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +1624 -1188
  182. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +2903 -2104
  183. data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +13 -13
  184. data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +13 -13
  185. data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +13 -13
  186. data/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +13 -13
  187. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +1115 -758
  188. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +419 -604
  189. data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
  190. data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +56 -56
  191. data/vendor/local/share/gtk-doc/html/cairo/index-1.12.html +70 -70
  192. data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +58 -58
  193. data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +39 -39
  194. data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +30 -30
  195. data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +38 -38
  196. data/vendor/local/share/gtk-doc/html/cairo/index-all.html +426 -426
  197. data/vendor/local/share/gtk-doc/html/cairo/index.html +6 -6
  198. data/vendor/local/share/gtk-doc/html/cairo/index.sgml +234 -325
  199. data/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +12 -12
  200. data/vendor/local/share/gtk-doc/html/cairo/left-insensitive.png +0 -0
  201. data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
  202. data/vendor/local/share/gtk-doc/html/cairo/right-insensitive.png +0 -0
  203. data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
  204. data/vendor/local/share/gtk-doc/html/cairo/style.css +221 -26
  205. data/vendor/local/share/gtk-doc/html/cairo/up-insensitive.png +0 -0
  206. data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
  207. data/vendor/local/share/license/cairo/README +1 -1
  208. data/vendor/local/share/license/freetype/README +6 -6
  209. data/vendor/local/share/license/freetype/README.git +1 -1
  210. data/vendor/local/share/license/libpng/README +2 -2
  211. data/vendor/local/share/man/man1/freetype-config.1 +1 -1
  212. data/vendor/local/share/man/man3/libpng.3 +85 -92
  213. data/vendor/local/share/man/man3/libpngpf.3 +2 -2
  214. data/vendor/local/share/man/man5/png.5 +1 -1
  215. metadata +23 -19
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType 2 build and setup macros. */
6
6
  /* */
7
- /* Copyright 1996-2001, 2006, 2013 by */
7
+ /* Copyright 1996-2015 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, */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* Quick computation of advance widths (specification only). */
6
6
  /* */
7
- /* Copyright 2008, 2013, 2014 by */
7
+ /* Copyright 2008-2015 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, */
@@ -77,7 +77,7 @@ FT_BEGIN_HEADER
77
77
  /* and hinting of the glyph outline, are extremely slow by */
78
78
  /* comparison. */
79
79
  /* */
80
- #define FT_ADVANCE_FLAG_FAST_ONLY 0x20000000UL
80
+ #define FT_ADVANCE_FLAG_FAST_ONLY 0x20000000L
81
81
 
82
82
 
83
83
  /*************************************************************************/
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType API for controlling the auto-hinter (specification only). */
6
6
  /* */
7
- /* Copyright 2012, 2013 by */
7
+ /* Copyright 2012-2015 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, */
@@ -300,7 +300,7 @@ FT_BEGIN_HEADER
300
300
  * @description:
301
301
  * *Experimental* *only*
302
302
  *
303
- * If Freetype gets compiled with FT_CONFIG_OPTION_USE_HARFBUZZ to make
303
+ * If FreeType gets compiled with FT_CONFIG_OPTION_USE_HARFBUZZ to make
304
304
  * the HarfBuzz library access OpenType features for getting better
305
305
  * glyph coverages, this property sets the (auto-fitter) script to be
306
306
  * used for the default (OpenType) script data of a font's GSUB table.
@@ -391,6 +391,54 @@ FT_BEGIN_HEADER
391
391
 
392
392
  } FT_Prop_IncreaseXHeight;
393
393
 
394
+
395
+ /**************************************************************************
396
+ *
397
+ * @property:
398
+ * warping
399
+ *
400
+ * @description:
401
+ * *Experimental* *only*
402
+ *
403
+ * If FreeType gets compiled with option AF_CONFIG_OPTION_USE_WARPER to
404
+ * activate the warp hinting code in the auto-hinter, this property
405
+ * switches warping on and off.
406
+ *
407
+ * Warping only works in `light' auto-hinting mode. The idea of the
408
+ * code is to slightly scale and shift a glyph along the non-hinted
409
+ * dimension (which is usually the horizontal axis) so that as much of
410
+ * its segments are aligned (more or less) to the grid. To find out a
411
+ * glyph's optimal scaling and shifting value, various parameter
412
+ * combinations are tried and scored.
413
+ *
414
+ * By default, warping is off. The example below shows how to switch on
415
+ * warping (omitting the error handling).
416
+ *
417
+ * {
418
+ * FT_Library library;
419
+ * FT_Bool warping = 1;
420
+ *
421
+ *
422
+ * FT_Init_FreeType( &library );
423
+ *
424
+ * FT_Property_Set( library, "autofitter",
425
+ * "warping", &warping );
426
+ * }
427
+ *
428
+ * @note:
429
+ * This property can be used with @FT_Property_Get also.
430
+ *
431
+ * The warping code can also change advance widths. Have a look at the
432
+ * `lsb_delta' and `rsb_delta' fields in the @FT_GlyphSlotRec structure
433
+ * for details on improving inter-glyph distances while rendering.
434
+ *
435
+ * Since warping is a global property of the auto-hinter it is best to
436
+ * change its value before rendering any face. Otherwise, you should
437
+ * reload all faces that get auto-hinted in `light' hinting mode.
438
+ *
439
+ */
440
+
441
+
394
442
  /* */
395
443
 
396
444
 
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType exact bbox computation (specification). */
6
6
  /* */
7
- /* Copyright 1996-2001, 2003, 2007, 2011, 2013 by */
7
+ /* Copyright 1996-2015 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, */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType API for accessing BDF-specific strings (specification). */
6
6
  /* */
7
- /* Copyright 2002-2004, 2006, 2009, 2014 by */
7
+ /* Copyright 2002-2015 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, */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType utility functions for bitmaps (specification). */
6
6
  /* */
7
- /* Copyright 2004-2006, 2008, 2013, 2014 by */
7
+ /* Copyright 2004-2015 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, */
@@ -55,7 +55,7 @@ FT_BEGIN_HEADER
55
55
  /*************************************************************************/
56
56
  /* */
57
57
  /* <Function> */
58
- /* FT_Bitmap_New */
58
+ /* FT_Bitmap_Init */
59
59
  /* */
60
60
  /* <Description> */
61
61
  /* Initialize a pointer to an @FT_Bitmap structure. */
@@ -63,6 +63,14 @@ FT_BEGIN_HEADER
63
63
  /* <InOut> */
64
64
  /* abitmap :: A pointer to the bitmap structure. */
65
65
  /* */
66
+ /* <Note> */
67
+ /* A deprecated name for the same function is `FT_Bitmap_New'. */
68
+ /* */
69
+ FT_EXPORT( void )
70
+ FT_Bitmap_Init( FT_Bitmap *abitmap );
71
+
72
+
73
+ /* deprecated */
66
74
  FT_EXPORT( void )
67
75
  FT_Bitmap_New( FT_Bitmap *abitmap );
68
76
 
@@ -202,7 +210,7 @@ FT_BEGIN_HEADER
202
210
  /* FT_Bitmap_Done */
203
211
  /* */
204
212
  /* <Description> */
205
- /* Destroy a bitmap object created with @FT_Bitmap_New. */
213
+ /* Destroy a bitmap object initialized with @FT_Bitmap_Init. */
206
214
  /* */
207
215
  /* <Input> */
208
216
  /* library :: A handle to a library object. */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* Bzip2-compressed stream support. */
6
6
  /* */
7
- /* Copyright 2010 by */
7
+ /* Copyright 2010-2015 by */
8
8
  /* Joel Klinghed. */
9
9
  /* */
10
10
  /* This file is part of the FreeType project, and may only be used, */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType Cache subsystem (specification). */
6
6
  /* */
7
- /* Copyright 1996-2008, 2010, 2013, 2014 by */
7
+ /* Copyright 1996-2015 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, */
@@ -667,8 +667,8 @@ FT_BEGIN_HEADER
667
667
  typedef struct FTC_ImageTypeRec_
668
668
  {
669
669
  FTC_FaceID face_id;
670
- FT_Int width;
671
- FT_Int height;
670
+ FT_UInt width;
671
+ FT_UInt height;
672
672
  FT_Int32 flags;
673
673
 
674
674
  } FTC_ImageTypeRec;
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType API for controlling the CFF driver (specification only). */
6
6
  /* */
7
- /* Copyright 2013, 2014 by */
7
+ /* Copyright 2013-2015 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, */
@@ -4,7 +4,8 @@
4
4
  /* */
5
5
  /* FreeType API for accessing CID font information (specification). */
6
6
  /* */
7
- /* Copyright 2007, 2009 by Dereg Clegg, Michael Toftdal. */
7
+ /* Copyright 2007-2015 by */
8
+ /* Dereg Clegg and Michael Toftdal. */
8
9
  /* */
9
10
  /* This file is part of the FreeType project, and may only be used, */
10
11
  /* modified, and distributed under the terms of the FreeType project */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType error codes (specification). */
6
6
  /* */
7
- /* Copyright 2002, 2004, 2006, 2007, 2010-2013 by */
7
+ /* Copyright 2002-2015 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, */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType error code handling (specification). */
6
6
  /* */
7
- /* Copyright 1996-2002, 2004, 2007, 2013 by */
7
+ /* Copyright 1996-2015 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, */
@@ -1,10 +1,10 @@
1
1
  /***************************************************************************/
2
2
  /* */
3
- /* ftxf86.h */
3
+ /* ftfntfmt.h */
4
4
  /* */
5
- /* Support functions for X11. */
5
+ /* Support functions for font formats. */
6
6
  /* */
7
- /* Copyright 2002-2004, 2006, 2007, 2013 by */
7
+ /* Copyright 2002-2015 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, */
@@ -16,8 +16,8 @@
16
16
  /***************************************************************************/
17
17
 
18
18
 
19
- #ifndef __FTXF86_H__
20
- #define __FTXF86_H__
19
+ #ifndef __FTFNTFMT_H__
20
+ #define __FTFNTFMT_H__
21
21
 
22
22
  #include <ft2build.h>
23
23
  #include FT_FREETYPE_H
@@ -49,22 +49,20 @@ FT_BEGIN_HEADER
49
49
  /* however, there are special cases (like in PDF devices) where it is */
50
50
  /* important to differentiate, in spite of FreeType's uniform API. */
51
51
  /* */
52
- /* This function is in the X11/xf86 namespace for historical reasons */
53
- /* and in no way depends on that windowing system. */
54
- /* */
55
52
  /*************************************************************************/
56
53
 
57
54
 
58
55
  /*************************************************************************/
59
56
  /* */
60
57
  /* <Function> */
61
- /* FT_Get_X11_Font_Format */
58
+ /* FT_Get_Font_Format */
62
59
  /* */
63
60
  /* <Description> */
64
- /* Return a string describing the format of a given face, using values */
65
- /* that can be used as an X11 FONT_PROPERTY. Possible values are */
66
- /* `TrueType', `Type~1', `BDF', `PCF', `Type~42', `CID~Type~1', `CFF', */
67
- /* `PFR', and `Windows~FNT'. */
61
+ /* Return a string describing the format of a given face. Possible */
62
+ /* values are `TrueType', `Type~1', `BDF', `PCF', `Type~42', */
63
+ /* `CID~Type~1', `CFF', `PFR', and `Windows~FNT'. */
64
+ /* */
65
+ /* The return value is suitable to be used as an X11 FONT_PROPERTY. */
68
66
  /* */
69
67
  /* <Input> */
70
68
  /* face :: */
@@ -73,12 +71,22 @@ FT_BEGIN_HEADER
73
71
  /* <Return> */
74
72
  /* Font format string. NULL in case of error. */
75
73
  /* */
74
+ /* <Note> */
75
+ /* A deprecated name for the same function is */
76
+ /* `FT_Get_X11_Font_Format'. */
77
+ /* */
78
+ FT_EXPORT( const char* )
79
+ FT_Get_Font_Format( FT_Face face );
80
+
81
+
82
+ /* deprecated */
76
83
  FT_EXPORT( const char* )
77
84
  FT_Get_X11_Font_Format( FT_Face face );
78
85
 
86
+
79
87
  /* */
80
88
 
81
89
 
82
90
  FT_END_HEADER
83
91
 
84
- #endif /* __FTXF86_H__ */
92
+ #endif /* __FTFNTFMT_H__ */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* Access of TrueType's `gasp' table (specification). */
6
6
  /* */
7
- /* Copyright 2007, 2008, 2011 by */
7
+ /* Copyright 2007-2015 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, */
@@ -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, 2013, 2014 by */
7
+ /* Copyright 1996-2015 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, */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType API for validating TrueTypeGX/AAT tables (specification). */
6
6
  /* */
7
- /* Copyright 2004-2006, 2013 by */
7
+ /* Copyright 2004-2015 by */
8
8
  /* Masatake YAMATO, Redhat K.K, */
9
9
  /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10
10
  /* */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* Gzip-compressed stream support. */
6
6
  /* */
7
- /* Copyright 2002-2004, 2006, 2013 by */
7
+ /* Copyright 2002-2015 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, */
@@ -5,7 +5,7 @@
5
5
  /* FreeType glyph image formats and default raster interface */
6
6
  /* (specification). */
7
7
  /* */
8
- /* Copyright 1996-2010, 2013, 2014 by */
8
+ /* Copyright 1996-2015 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, */
@@ -258,11 +258,6 @@ FT_BEGIN_HEADER
258
258
  /* field is intended for paletted pixel modes. Not */
259
259
  /* used currently. */
260
260
  /* */
261
- /* <Note> */
262
- /* For now, the only pixel modes supported by FreeType are mono and */
263
- /* grays. However, drivers might be added in the future to support */
264
- /* more `colorful' options. */
265
- /* */
266
261
  typedef struct FT_Bitmap_
267
262
  {
268
263
  unsigned int rows;
@@ -1078,10 +1073,10 @@ FT_BEGIN_HEADER
1078
1073
  /* FT_Raster_ResetFunc */
1079
1074
  /* */
1080
1075
  /* <Description> */
1081
- /* FreeType provides an area of memory called the `render pool', */
1082
- /* available to all registered rasters. This pool can be freely used */
1083
- /* during a given scan-conversion but is shared by all rasters. Its */
1084
- /* content is thus transient. */
1076
+ /* FreeType used to provide an area of memory called the `render */
1077
+ /* pool' available to all registered rasters. This was not thread */
1078
+ /* safe however and now FreeType never allocates this pool. NULL */
1079
+ /* is always passed in as pool_base. */
1085
1080
  /* */
1086
1081
  /* This function is called each time the render pool changes, or just */
1087
1082
  /* after a new raster object is created. */
@@ -1094,10 +1089,9 @@ FT_BEGIN_HEADER
1094
1089
  /* pool_size :: The size in bytes of the render pool. */
1095
1090
  /* */
1096
1091
  /* <Note> */
1097
- /* Rasters can ignore the render pool and rely on dynamic memory */
1092
+ /* Rasters should ignore the render pool and rely on dynamic or stack */
1098
1093
  /* allocation if they want to (a handle to the memory allocator is */
1099
- /* passed to the raster constructor). However, this is not */
1100
- /* recommended for efficiency purposes. */
1094
+ /* passed to the raster constructor). */
1101
1095
  /* */
1102
1096
  typedef void
1103
1097
  (*FT_Raster_ResetFunc)( FT_Raster raster,
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType incremental loading (specification). */
6
6
  /* */
7
- /* Copyright 2002, 2003, 2006-2008, 2010, 2014 by */
7
+ /* Copyright 2002-2015 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, */
@@ -5,7 +5,7 @@
5
5
  /* FreeType API for color filtering of subpixel bitmap glyphs */
6
6
  /* (specification). */
7
7
  /* */
8
- /* Copyright 2006-2008, 2010, 2013 by */
8
+ /* Copyright 2006-2015 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, */
@@ -56,7 +56,7 @@ FT_BEGIN_HEADER
56
56
  *
57
57
  * FreeType generates alpha coverage maps, which are linear by nature.
58
58
  * For instance, the value 0x80 in bitmap representation means that
59
- * (within numerical precision) 0x80/0xff fraction of that pixel is
59
+ * (within numerical precision) 0x80/0xFF fraction of that pixel is
60
60
  * covered by the glyph's outline. The blending function for placing
61
61
  * text over a background is
62
62
  *
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* Generic list support for FreeType (specification). */
6
6
  /* */
7
- /* Copyright 1996-2001, 2003, 2007, 2010, 2013, 2014 by */
7
+ /* Copyright 1996-2015 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, */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* LZW-compressed stream support. */
6
6
  /* */
7
- /* Copyright 2004, 2006 by */
7
+ /* Copyright 2004-2015 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, */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* Additional Mac-specific API. */
6
6
  /* */
7
- /* Copyright 1996-2001, 2004, 2006, 2007, 2013 by */
7
+ /* Copyright 1996-2015 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, */