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 Multiple Master font interface (specification). */
6
6
  /* */
7
- /* Copyright 1996-2001, 2003, 2004, 2006, 2009, 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, */
@@ -95,8 +95,8 @@ FT_BEGIN_HEADER
95
95
  /* */
96
96
  /* num_designs :: Number of designs; should be normally 2^num_axis */
97
97
  /* even though the Type~1 specification strangely */
98
- /* allows for intermediate designs to be present. This */
99
- /* number cannot exceed~16. */
98
+ /* allows for intermediate designs to be present. */
99
+ /* This number cannot exceed~16. */
100
100
  /* */
101
101
  /* axis :: A table of axis descriptors. */
102
102
  /* */
@@ -201,10 +201,10 @@ FT_BEGIN_HEADER
201
201
  /* associated with them. The font can tell the */
202
202
  /* user that, for example, Weight=1.5 is `Bold'. */
203
203
  /* */
204
- /* axis :: A table of axis descriptors. */
204
+ /* axis :: An axis descriptor table. */
205
205
  /* GX fonts contain slightly more data than MM. */
206
206
  /* */
207
- /* namedstyles :: A table of named styles. */
207
+ /* namedstyle :: A named style table. */
208
208
  /* Only meaningful with GX. */
209
209
  /* */
210
210
  typedef struct FT_MM_Var_
@@ -280,8 +280,10 @@ FT_BEGIN_HEADER
280
280
  /* face :: A handle to the source face. */
281
281
  /* */
282
282
  /* <Input> */
283
- /* num_coords :: The number of design coordinates (must be equal to */
284
- /* the number of axes in the font). */
283
+ /* num_coords :: The number of available design coordinates. If it */
284
+ /* is larger than the number of axes, ignore the excess */
285
+ /* values. If it is smaller than the number of axes, */
286
+ /* use default values for the remaining axes. */
285
287
  /* */
286
288
  /* coords :: An array of design coordinates. */
287
289
  /* */
@@ -307,8 +309,10 @@ FT_BEGIN_HEADER
307
309
  /* face :: A handle to the source face. */
308
310
  /* */
309
311
  /* <Input> */
310
- /* num_coords :: The number of design coordinates (must be equal to */
311
- /* the number of axes in the font). */
312
+ /* num_coords :: The number of available design coordinates. If it */
313
+ /* is larger than the number of axes, ignore the excess */
314
+ /* values. If it is smaller than the number of axes, */
315
+ /* use default values for the remaining axes. */
312
316
  /* */
313
317
  /* coords :: An array of design coordinates. */
314
318
  /* */
@@ -334,8 +338,10 @@ FT_BEGIN_HEADER
334
338
  /* face :: A handle to the source face. */
335
339
  /* */
336
340
  /* <Input> */
337
- /* num_coords :: The number of design coordinates (must be equal to */
338
- /* the number of axes in the font). */
341
+ /* num_coords :: The number of available design coordinates. If it */
342
+ /* is larger than the number of axes, ignore the excess */
343
+ /* values. If it is smaller than the number of axes, */
344
+ /* use default values for the remaining axes. */
339
345
  /* */
340
346
  /* coords :: The design coordinates array (each element must be */
341
347
  /* between 0 and 1.0). */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType modules public interface (specification). */
6
6
  /* */
7
- /* Copyright 1996-2003, 2006, 2008-2010, 2012, 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, */
@@ -469,7 +469,9 @@ FT_BEGIN_HEADER
469
469
  /* <Description> */
470
470
  /* This function is used to create a new FreeType library instance */
471
471
  /* from a given memory object. It is thus possible to use libraries */
472
- /* with distinct memory allocators within the same program. */
472
+ /* with distinct memory allocators within the same program. Note, */
473
+ /* however, that the used @FT_Memory structure is expected to remain */
474
+ /* valid for the life of the @FT_Library object. */
473
475
  /* */
474
476
  /* Normally, you would call this function (followed by a call to */
475
477
  /* @FT_Add_Default_Modules or a series of calls to @FT_Add_Module) */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType module error offsets (specification). */
6
6
  /* */
7
- /* Copyright 2001-2005, 2010, 2013 by */
7
+ /* Copyright 2001-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 OpenType tables (specification). */
6
6
  /* */
7
- /* Copyright 2004-2007, 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, */
@@ -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-2003, 2005-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, */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType API for accessing PFR-specific data (specification only). */
6
6
  /* */
7
- /* Copyright 2002, 2003, 2004, 2006, 2008, 2009 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 renderer modules public interface (specification). */
6
6
  /* */
7
- /* Copyright 1996-2001, 2005, 2006, 2010 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, */
@@ -212,13 +212,8 @@ 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. */
215
+ /* Currently, no FreeType renderer module uses `parameters'; you */
216
+ /* should thus always pass NULL as the value. */
222
217
  /* */
223
218
  FT_EXPORT( FT_Error )
224
219
  FT_Set_Renderer( FT_Library library,
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType size objects management (specification). */
6
6
  /* */
7
- /* Copyright 1996-2001, 2003, 2004, 2006, 2009, 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, */
@@ -7,7 +7,7 @@
7
7
  /* */
8
8
  /* This is _not_ used to retrieve glyph names! */
9
9
  /* */
10
- /* Copyright 1996-2003, 2006, 2009, 2010, 2013 by */
10
+ /* Copyright 1996-2015 by */
11
11
  /* David Turner, Robert Wilhelm, and Werner Lemberg. */
12
12
  /* */
13
13
  /* This file is part of the FreeType project, and may only be used, */
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType path stroker (specification). */
6
6
  /* */
7
- /* Copyright 2002-2006, 2008, 2009, 2011-2012, 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 synthesizing code for emboldening and slanting */
6
6
  /* (specification). */
7
7
  /* */
8
- /* Copyright 2000-2001, 2003, 2006, 2008, 2012, 2013 by */
8
+ /* Copyright 2000-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, */
@@ -62,8 +62,10 @@ FT_BEGIN_HEADER
62
62
  /* a wrapper for @FT_Outline_Embolden and @FT_Bitmap_Embolden. */
63
63
  /* */
64
64
  /* For emboldened outlines the height, width, and advance metrics are */
65
- /* increased by the strength of the emboldening. You can also call */
66
- /* @FT_Outline_Get_CBox to get precise values. */
65
+ /* increased by the strength of the emboldening -- this even affects */
66
+ /* mono-width fonts! */
67
+ /* */
68
+ /* You can also call @FT_Outline_Get_CBox to get precise values. */
67
69
  FT_EXPORT( void )
68
70
  FT_GlyphSlot_Embolden( FT_GlyphSlot slot );
69
71
 
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType low-level system interface definition (specification). */
6
6
  /* */
7
- /* Copyright 1996-2001, 2002, 2005, 2010 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, */
@@ -192,6 +192,10 @@ FT_BEGIN_HEADER
192
192
  * @description:
193
193
  * A handle to an input stream.
194
194
  *
195
+ * @also:
196
+ * See @FT_StreamRec for the publicly accessible fields of a given
197
+ * stream object.
198
+ *
195
199
  */
196
200
  typedef struct FT_StreamRec_* FT_Stream;
197
201
 
@@ -285,6 +289,11 @@ FT_BEGIN_HEADER
285
289
  * size ::
286
290
  * The stream size in bytes.
287
291
  *
292
+ * In case of compressed streams where the size is unknown before
293
+ * actually doing the decompression, the value is set to 0x7FFFFFFF.
294
+ * (Note that this size value can occur for normal streams also; it is
295
+ * thus just a hint.)
296
+ *
288
297
  * pos ::
289
298
  * The current position within the stream.
290
299
  *
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType trigonometric functions (specification). */
6
6
  /* */
7
- /* Copyright 2001, 2003, 2005, 2007, 2013 by */
7
+ /* Copyright 2001-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 controlling the TrueType driver */
6
6
  /* (specification only). */
7
7
  /* */
8
- /* Copyright 2013 by */
8
+ /* Copyright 2013-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, */
@@ -67,13 +67,13 @@ FT_BEGIN_HEADER
67
67
  * TT_CONFIG_OPTION_SUBPIXEL_HINTING is defined, and no subpixel
68
68
  * support otherwise (since it isn't available then).
69
69
  *
70
- * If subpixel hinting is on, many TrueType bytecode instructions
71
- * behave differently compared to B/W or grayscale rendering. The
72
- * main idea is to render at a much increased horizontal resolution,
73
- * then sampling down the created output to subpixel precision.
74
- * However, many older fonts are not suited to this and must be
75
- * specially taken care of by applying (hardcoded) font-specific
76
- * tweaks.
70
+ * If subpixel hinting is on, many TrueType bytecode instructions behave
71
+ * differently compared to B/W or grayscale rendering (except if `native
72
+ * ClearType' is selected by the font). The main idea is to render at a
73
+ * much increased horizontal resolution, then sampling down the created
74
+ * output to subpixel precision. However, many older fonts are not
75
+ * suited to this and must be specially taken care of by applying
76
+ * (hardcoded) font-specific tweaks.
77
77
  *
78
78
  * Details on subpixel hinting and some of the necessary tweaks can be
79
79
  * found in Greg Hitchcock's whitepaper at
@@ -135,24 +135,87 @@ FT_BEGIN_HEADER
135
135
  * `FT_Err_Unimplemented_Feature' error.
136
136
  *
137
137
  * Depending on the graphics framework, Microsoft uses different
138
- * bytecode engines. As a consequence, the version numbers returned by
139
- * a call to the `GETINFO[1]' bytecode instruction are more convoluted
140
- * than desired.
138
+ * bytecode and rendering engines. As a consequence, the version
139
+ * numbers returned by a call to the `GETINFO' bytecode instruction are
140
+ * more convoluted than desired.
141
+ *
142
+ * Here are two tables that try to shed some light on the possible
143
+ * values for the MS rasterizer engine, together with the additional
144
+ * features introduced by it.
145
+ *
146
+ * {
147
+ * GETINFO framework version feature
148
+ * -------------------------------------------------------------------
149
+ * 3 GDI (Win 3.1), v1.0 16-bit, first version
150
+ * TrueImage
151
+ * 33 GDI (Win NT 3.1), v1.5 32-bit
152
+ * HP Laserjet
153
+ * 34 GDI (Win 95) v1.6 font smoothing,
154
+ * new SCANTYPE opcode
155
+ * 35 GDI (Win 98/2000) v1.7 (UN)SCALED_COMPONENT_OFFSET
156
+ * bits in composite glyphs
157
+ * 36 MGDI (Win CE 2) v1.6+ classic ClearType
158
+ * 37 GDI (XP and later), v1.8 ClearType
159
+ * GDI+ old (before Vista)
160
+ * 38 GDI+ old (Vista, Win 7), v1.9 subpixel ClearType,
161
+ * WPF Y-direction ClearType,
162
+ * additional error checking
163
+ * 39 DWrite (before Win 8) v2.0 subpixel ClearType flags
164
+ * in GETINFO opcode,
165
+ * bug fixes
166
+ * 40 GDI+ (after Win 7), v2.1 Y-direction ClearType flag
167
+ * DWrite (Win 8) in GETINFO opcode,
168
+ * Gray ClearType
169
+ * }
170
+ *
171
+ * The `version' field gives a rough orientation only, since some
172
+ * applications provided certain features much earlier (as an example,
173
+ * Microsoft Reader used subpixel and Y-direction ClearType already in
174
+ * Windows 2000). Similarly, updates to a given framework might include
175
+ * improved hinting support.
141
176
  *
142
177
  * {
143
- * framework Windows version result of GETINFO[1]
144
- * ----------------------------------------------------
145
- * GDI before XP 35
146
- * GDI XP and later 37
147
- * GDI+ old before Vista 37
148
- * GDI+ old Vista, 7 38
149
- * GDI+ after 7 40
150
- * DWrite before 8 39
151
- * DWrite 8 and later 40
178
+ * version sampling rendering comment
179
+ * x y x y
180
+ * --------------------------------------------------------------
181
+ * v1.0 normal normal B/W B/W bi-level
182
+ * v1.6 high high gray gray grayscale
183
+ * v1.8 high normal color-filter B/W (GDI) ClearType
184
+ * v1.9 high high color-filter gray Color ClearType
185
+ * v2.1 high normal gray B/W Gray ClearType
186
+ * v2.1 high high gray gray Gray ClearType
152
187
  * }
153
188
  *
154
- * Since FreeType doesn't provide all capabilities of DWrite ClearType,
155
- * using version~38 seems justified.
189
+ * Color and Gray ClearType are the two available variants of
190
+ * `Y-direction ClearType', meaning grayscale rasterization along the
191
+ * Y-direction; the name used in the TrueType specification for this
192
+ * feature is `symmetric smoothing'. `Classic ClearType' is the
193
+ * original algorithm used before introducing a modified version in
194
+ * Win~XP. Another name for v1.6's grayscale rendering is `font
195
+ * smoothing', and `Color ClearType' is sometimes also called `DWrite
196
+ * ClearType'. To differentiate between today's Color ClearType and the
197
+ * earlier ClearType variant with B/W rendering along the vertical axis,
198
+ * the latter is sometimes called `GDI ClearType'.
199
+ *
200
+ * `Normal' and `high' sampling describe the (virtual) resolution to
201
+ * access the rasterized outline after the hinting process. `Normal'
202
+ * means 1 sample per grid line (i.e., B/W). In the current Microsoft
203
+ * implementation, `high' means an extra virtual resolution of 16x16 (or
204
+ * 16x1) grid lines per pixel for bytecode instructions like `MIRP'.
205
+ * After hinting, these 16 grid lines are mapped to 6x5 (or 6x1) grid
206
+ * lines for color filtering if Color ClearType is activated.
207
+ *
208
+ * Note that `Gray ClearType' is essentially the same as v1.6's
209
+ * grayscale rendering. However, the GETINFO instruction handles it
210
+ * differently: v1.6 returns bit~12 (hinting for grayscale), while v2.1
211
+ * returns bits~13 (hinting for ClearType), 18 (symmetrical smoothing),
212
+ * and~19 (Gray ClearType). Also, this mode respects bits 2 and~3 for
213
+ * the version~1 gasp table exclusively (like Color ClearType), while
214
+ * v1.6 only respects the values of version~0 (bits 0 and~1).
215
+ *
216
+ * FreeType doesn't provide all capabilities of the most recent
217
+ * ClearType incarnation, thus we identify our subpixel support as
218
+ * version~38.
156
219
  *
157
220
  */
158
221
  #define TT_INTERPRETER_VERSION_35 35
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* FreeType simple types definitions (specification only). */
6
6
  /* */
7
- /* Copyright 1996-2002, 2004, 2006-2009, 2012-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 accessing Windows fnt-specific data. */
6
6
  /* */
7
- /* Copyright 2003, 2004, 2008 by */
7
+ /* Copyright 2003-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, */
@@ -59,7 +59,7 @@ FT_BEGIN_HEADER
59
59
  * A list of valid values for the `charset' byte in
60
60
  * @FT_WinFNT_HeaderRec. Exact mapping tables for the various cpXXXX
61
61
  * encodings (except for cp1361) can be found at
62
- * ftp://ftp.unicode.org/public in the MAPPINGS/VENDORS/MICSFT/WINDOWS
62
+ * ftp://ftp.unicode.org/Public in the MAPPINGS/VENDORS/MICSFT/WINDOWS
63
63
  * subdirectory. cp1361 is roughly a superset of
64
64
  * MAPPINGS/OBSOLETE/EASTASIA/KSC/JOHAB.TXT.
65
65
  *
@@ -95,7 +95,7 @@ FT_BEGIN_HEADER
95
95
  * second default codepage that most international versions of
96
96
  * Windows have. It is one of the OEM codepages from
97
97
  *
98
- * http://www.microsoft.com/globaldev/reference/cphome.mspx,
98
+ * https://msdn.microsoft.com/en-us/goglobal/bb964655,
99
99
  *
100
100
  * and is used for the `DOS boxes', to support legacy applications.
101
101
  * A German Windows version for example usually uses ANSI codepage
@@ -5,7 +5,7 @@
5
5
  /* Basic Type 1/Type 2 tables definitions and interface (specification */
6
6
  /* only). */
7
7
  /* */
8
- /* Copyright 1996-2004, 2006, 2008, 2009, 2011, 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, */
@@ -492,8 +492,9 @@ FT_BEGIN_HEADER
492
492
  * FreeType error code. 0~means success.
493
493
  *
494
494
  * @note:
495
- * The string pointers within the font info structure are owned by
496
- * the face and don't need to be freed by the caller.
495
+ * String pointers within the @PS_FontInfoRec structure are owned by
496
+ * the face and don't need to be freed by the caller. Missing entries
497
+ * in the font's FontInfo dictionary are represented by NULL pointers.
497
498
  *
498
499
  * If the font's format is not PostScript-based, this function will
499
500
  * return the `FT_Err_Invalid_Argument' error code.
@@ -4,7 +4,7 @@
4
4
  /* */
5
5
  /* TrueType name ID definitions (specification only). */
6
6
  /* */
7
- /* Copyright 1996-2004, 2006-2008, 2012, 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, */
@@ -321,7 +321,7 @@ FT_BEGIN_HEADER
321
321
  /* */
322
322
  /* The canonical source for the Apple assigned Language ID's is at */
323
323
  /* */
324
- /* https://developer.apple.com/fonts/TTRefMan/RM06/Chap6name.html */
324
+ /* https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6name.html */
325
325
  /* */
326
326
  #define TT_MAC_LANGID_ENGLISH 0
327
327
  #define TT_MAC_LANGID_FRENCH 1
@@ -470,26 +470,26 @@ FT_BEGIN_HEADER
470
470
  #define TT_MS_LANGID_ARABIC_GENERAL 0x0001
471
471
  #define TT_MS_LANGID_ARABIC_SAUDI_ARABIA 0x0401
472
472
  #define TT_MS_LANGID_ARABIC_IRAQ 0x0801
473
- #define TT_MS_LANGID_ARABIC_EGYPT 0x0c01
473
+ #define TT_MS_LANGID_ARABIC_EGYPT 0x0C01
474
474
  #define TT_MS_LANGID_ARABIC_LIBYA 0x1001
475
475
  #define TT_MS_LANGID_ARABIC_ALGERIA 0x1401
476
476
  #define TT_MS_LANGID_ARABIC_MOROCCO 0x1801
477
- #define TT_MS_LANGID_ARABIC_TUNISIA 0x1c01
477
+ #define TT_MS_LANGID_ARABIC_TUNISIA 0x1C01
478
478
  #define TT_MS_LANGID_ARABIC_OMAN 0x2001
479
479
  #define TT_MS_LANGID_ARABIC_YEMEN 0x2401
480
480
  #define TT_MS_LANGID_ARABIC_SYRIA 0x2801
481
- #define TT_MS_LANGID_ARABIC_JORDAN 0x2c01
481
+ #define TT_MS_LANGID_ARABIC_JORDAN 0x2C01
482
482
  #define TT_MS_LANGID_ARABIC_LEBANON 0x3001
483
483
  #define TT_MS_LANGID_ARABIC_KUWAIT 0x3401
484
484
  #define TT_MS_LANGID_ARABIC_UAE 0x3801
485
- #define TT_MS_LANGID_ARABIC_BAHRAIN 0x3c01
485
+ #define TT_MS_LANGID_ARABIC_BAHRAIN 0x3C01
486
486
  #define TT_MS_LANGID_ARABIC_QATAR 0x4001
487
487
  #define TT_MS_LANGID_BULGARIAN_BULGARIA 0x0402
488
488
  #define TT_MS_LANGID_CATALAN_SPAIN 0x0403
489
489
  #define TT_MS_LANGID_CHINESE_GENERAL 0x0004
490
490
  #define TT_MS_LANGID_CHINESE_TAIWAN 0x0404
491
491
  #define TT_MS_LANGID_CHINESE_PRC 0x0804
492
- #define TT_MS_LANGID_CHINESE_HONG_KONG 0x0c04
492
+ #define TT_MS_LANGID_CHINESE_HONG_KONG 0x0C04
493
493
  #define TT_MS_LANGID_CHINESE_SINGAPORE 0x1004
494
494
 
495
495
  #if 1 /* this looks like the correct value */
@@ -507,7 +507,7 @@ FT_BEGIN_HEADER
507
507
  #define TT_MS_LANGID_DANISH_DENMARK 0x0406
508
508
  #define TT_MS_LANGID_GERMAN_GERMANY 0x0407
509
509
  #define TT_MS_LANGID_GERMAN_SWITZERLAND 0x0807
510
- #define TT_MS_LANGID_GERMAN_AUSTRIA 0x0c07
510
+ #define TT_MS_LANGID_GERMAN_AUSTRIA 0x0C07
511
511
  #define TT_MS_LANGID_GERMAN_LUXEMBOURG 0x1007
512
512
  #define TT_MS_LANGID_GERMAN_LIECHTENSTEI 0x1407
513
513
  #define TT_MS_LANGID_GREEK_GREECE 0x0408
@@ -520,69 +520,69 @@ FT_BEGIN_HEADER
520
520
  #define TT_MS_LANGID_ENGLISH_GENERAL 0x0009
521
521
  #define TT_MS_LANGID_ENGLISH_UNITED_STATES 0x0409
522
522
  #define TT_MS_LANGID_ENGLISH_UNITED_KINGDOM 0x0809
523
- #define TT_MS_LANGID_ENGLISH_AUSTRALIA 0x0c09
523
+ #define TT_MS_LANGID_ENGLISH_AUSTRALIA 0x0C09
524
524
  #define TT_MS_LANGID_ENGLISH_CANADA 0x1009
525
525
  #define TT_MS_LANGID_ENGLISH_NEW_ZEALAND 0x1409
526
526
  #define TT_MS_LANGID_ENGLISH_IRELAND 0x1809
527
- #define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA 0x1c09
527
+ #define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA 0x1C09
528
528
  #define TT_MS_LANGID_ENGLISH_JAMAICA 0x2009
529
529
  #define TT_MS_LANGID_ENGLISH_CARIBBEAN 0x2409
530
530
  #define TT_MS_LANGID_ENGLISH_BELIZE 0x2809
531
- #define TT_MS_LANGID_ENGLISH_TRINIDAD 0x2c09
531
+ #define TT_MS_LANGID_ENGLISH_TRINIDAD 0x2C09
532
532
  #define TT_MS_LANGID_ENGLISH_ZIMBABWE 0x3009
533
533
  #define TT_MS_LANGID_ENGLISH_PHILIPPINES 0x3409
534
534
  #define TT_MS_LANGID_ENGLISH_INDONESIA 0x3809
535
- #define TT_MS_LANGID_ENGLISH_HONG_KONG 0x3c09
535
+ #define TT_MS_LANGID_ENGLISH_HONG_KONG 0x3C09
536
536
  #define TT_MS_LANGID_ENGLISH_INDIA 0x4009
537
537
  #define TT_MS_LANGID_ENGLISH_MALAYSIA 0x4409
538
538
  #define TT_MS_LANGID_ENGLISH_SINGAPORE 0x4809
539
- #define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT 0x040a
540
- #define TT_MS_LANGID_SPANISH_MEXICO 0x080a
541
- #define TT_MS_LANGID_SPANISH_SPAIN_INTERNATIONAL_SORT 0x0c0a
542
- #define TT_MS_LANGID_SPANISH_GUATEMALA 0x100a
543
- #define TT_MS_LANGID_SPANISH_COSTA_RICA 0x140a
544
- #define TT_MS_LANGID_SPANISH_PANAMA 0x180a
545
- #define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC 0x1c0a
546
- #define TT_MS_LANGID_SPANISH_VENEZUELA 0x200a
547
- #define TT_MS_LANGID_SPANISH_COLOMBIA 0x240a
548
- #define TT_MS_LANGID_SPANISH_PERU 0x280a
549
- #define TT_MS_LANGID_SPANISH_ARGENTINA 0x2c0a
550
- #define TT_MS_LANGID_SPANISH_ECUADOR 0x300a
551
- #define TT_MS_LANGID_SPANISH_CHILE 0x340a
552
- #define TT_MS_LANGID_SPANISH_URUGUAY 0x380a
553
- #define TT_MS_LANGID_SPANISH_PARAGUAY 0x3c0a
554
- #define TT_MS_LANGID_SPANISH_BOLIVIA 0x400a
555
- #define TT_MS_LANGID_SPANISH_EL_SALVADOR 0x440a
556
- #define TT_MS_LANGID_SPANISH_HONDURAS 0x480a
557
- #define TT_MS_LANGID_SPANISH_NICARAGUA 0x4c0a
558
- #define TT_MS_LANGID_SPANISH_PUERTO_RICO 0x500a
559
- #define TT_MS_LANGID_SPANISH_UNITED_STATES 0x540a
539
+ #define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT 0x040A
540
+ #define TT_MS_LANGID_SPANISH_MEXICO 0x080A
541
+ #define TT_MS_LANGID_SPANISH_SPAIN_INTERNATIONAL_SORT 0x0C0A
542
+ #define TT_MS_LANGID_SPANISH_GUATEMALA 0x100A
543
+ #define TT_MS_LANGID_SPANISH_COSTA_RICA 0x140A
544
+ #define TT_MS_LANGID_SPANISH_PANAMA 0x180A
545
+ #define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC 0x1C0A
546
+ #define TT_MS_LANGID_SPANISH_VENEZUELA 0x200A
547
+ #define TT_MS_LANGID_SPANISH_COLOMBIA 0x240A
548
+ #define TT_MS_LANGID_SPANISH_PERU 0x280A
549
+ #define TT_MS_LANGID_SPANISH_ARGENTINA 0x2C0A
550
+ #define TT_MS_LANGID_SPANISH_ECUADOR 0x300A
551
+ #define TT_MS_LANGID_SPANISH_CHILE 0x340A
552
+ #define TT_MS_LANGID_SPANISH_URUGUAY 0x380A
553
+ #define TT_MS_LANGID_SPANISH_PARAGUAY 0x3C0A
554
+ #define TT_MS_LANGID_SPANISH_BOLIVIA 0x400A
555
+ #define TT_MS_LANGID_SPANISH_EL_SALVADOR 0x440A
556
+ #define TT_MS_LANGID_SPANISH_HONDURAS 0x480A
557
+ #define TT_MS_LANGID_SPANISH_NICARAGUA 0x4C0A
558
+ #define TT_MS_LANGID_SPANISH_PUERTO_RICO 0x500A
559
+ #define TT_MS_LANGID_SPANISH_UNITED_STATES 0x540A
560
560
  /* The following ID blatantly violate MS specs by using a */
561
561
  /* sublanguage > 0x1F. */
562
- #define TT_MS_LANGID_SPANISH_LATIN_AMERICA 0xE40aU
563
- #define TT_MS_LANGID_FINNISH_FINLAND 0x040b
564
- #define TT_MS_LANGID_FRENCH_FRANCE 0x040c
565
- #define TT_MS_LANGID_FRENCH_BELGIUM 0x080c
566
- #define TT_MS_LANGID_FRENCH_CANADA 0x0c0c
567
- #define TT_MS_LANGID_FRENCH_SWITZERLAND 0x100c
568
- #define TT_MS_LANGID_FRENCH_LUXEMBOURG 0x140c
569
- #define TT_MS_LANGID_FRENCH_MONACO 0x180c
570
- #define TT_MS_LANGID_FRENCH_WEST_INDIES 0x1c0c
571
- #define TT_MS_LANGID_FRENCH_REUNION 0x200c
572
- #define TT_MS_LANGID_FRENCH_CONGO 0x240c
562
+ #define TT_MS_LANGID_SPANISH_LATIN_AMERICA 0xE40AU
563
+ #define TT_MS_LANGID_FINNISH_FINLAND 0x040B
564
+ #define TT_MS_LANGID_FRENCH_FRANCE 0x040C
565
+ #define TT_MS_LANGID_FRENCH_BELGIUM 0x080C
566
+ #define TT_MS_LANGID_FRENCH_CANADA 0x0C0C
567
+ #define TT_MS_LANGID_FRENCH_SWITZERLAND 0x100C
568
+ #define TT_MS_LANGID_FRENCH_LUXEMBOURG 0x140C
569
+ #define TT_MS_LANGID_FRENCH_MONACO 0x180C
570
+ #define TT_MS_LANGID_FRENCH_WEST_INDIES 0x1C0C
571
+ #define TT_MS_LANGID_FRENCH_REUNION 0x200C
572
+ #define TT_MS_LANGID_FRENCH_CONGO 0x240C
573
573
  /* which was formerly: */
574
574
  #define TT_MS_LANGID_FRENCH_ZAIRE TT_MS_LANGID_FRENCH_CONGO
575
- #define TT_MS_LANGID_FRENCH_SENEGAL 0x280c
576
- #define TT_MS_LANGID_FRENCH_CAMEROON 0x2c0c
577
- #define TT_MS_LANGID_FRENCH_COTE_D_IVOIRE 0x300c
578
- #define TT_MS_LANGID_FRENCH_MALI 0x340c
579
- #define TT_MS_LANGID_FRENCH_MOROCCO 0x380c
580
- #define TT_MS_LANGID_FRENCH_HAITI 0x3c0c
581
- /* and another violation of the spec (see 0xE40aU) */
582
- #define TT_MS_LANGID_FRENCH_NORTH_AFRICA 0xE40cU
583
- #define TT_MS_LANGID_HEBREW_ISRAEL 0x040d
584
- #define TT_MS_LANGID_HUNGARIAN_HUNGARY 0x040e
585
- #define TT_MS_LANGID_ICELANDIC_ICELAND 0x040f
575
+ #define TT_MS_LANGID_FRENCH_SENEGAL 0x280C
576
+ #define TT_MS_LANGID_FRENCH_CAMEROON 0x2C0C
577
+ #define TT_MS_LANGID_FRENCH_COTE_D_IVOIRE 0x300C
578
+ #define TT_MS_LANGID_FRENCH_MALI 0x340C
579
+ #define TT_MS_LANGID_FRENCH_MOROCCO 0x380C
580
+ #define TT_MS_LANGID_FRENCH_HAITI 0x3C0C
581
+ /* and another violation of the spec (see 0xE40AU) */
582
+ #define TT_MS_LANGID_FRENCH_NORTH_AFRICA 0xE40CU
583
+ #define TT_MS_LANGID_HEBREW_ISRAEL 0x040D
584
+ #define TT_MS_LANGID_HUNGARIAN_HUNGARY 0x040E
585
+ #define TT_MS_LANGID_ICELANDIC_ICELAND 0x040F
586
586
  #define TT_MS_LANGID_ITALIAN_ITALY 0x0410
587
587
  #define TT_MS_LANGID_ITALIAN_SWITZERLAND 0x0810
588
588
  #define TT_MS_LANGID_JAPANESE_JAPAN 0x0411
@@ -600,27 +600,27 @@ FT_BEGIN_HEADER
600
600
  #define TT_MS_LANGID_MOLDAVIAN_MOLDAVIA 0x0818
601
601
  #define TT_MS_LANGID_RUSSIAN_RUSSIA 0x0419
602
602
  #define TT_MS_LANGID_RUSSIAN_MOLDAVIA 0x0819
603
- #define TT_MS_LANGID_CROATIAN_CROATIA 0x041a
604
- #define TT_MS_LANGID_SERBIAN_SERBIA_LATIN 0x081a
605
- #define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC 0x0c1a
603
+ #define TT_MS_LANGID_CROATIAN_CROATIA 0x041A
604
+ #define TT_MS_LANGID_SERBIAN_SERBIA_LATIN 0x081A
605
+ #define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC 0x0C1A
606
606
 
607
607
  #if 0 /* this used to be this value, but it looks like we were wrong */
608
- #define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x101a
608
+ #define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x101A
609
609
  #else /* current sources say */
610
- #define TT_MS_LANGID_CROATIAN_BOSNIA_HERZEGOVINA 0x101a
611
- #define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x141a
610
+ #define TT_MS_LANGID_CROATIAN_BOSNIA_HERZEGOVINA 0x101A
611
+ #define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x141A
612
612
  /* and XPsp2 Platform SDK added (2004-07-26) */
613
613
  /* Names are shortened to be significant within 40 chars. */
614
- #define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_LATIN 0x181a
615
- #define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_CYRILLIC 0x181a
614
+ #define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_LATIN 0x181A
615
+ #define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_CYRILLIC 0x181A
616
616
  #endif
617
617
 
618
- #define TT_MS_LANGID_SLOVAK_SLOVAKIA 0x041b
619
- #define TT_MS_LANGID_ALBANIAN_ALBANIA 0x041c
620
- #define TT_MS_LANGID_SWEDISH_SWEDEN 0x041d
621
- #define TT_MS_LANGID_SWEDISH_FINLAND 0x081d
622
- #define TT_MS_LANGID_THAI_THAILAND 0x041e
623
- #define TT_MS_LANGID_TURKISH_TURKEY 0x041f
618
+ #define TT_MS_LANGID_SLOVAK_SLOVAKIA 0x041B
619
+ #define TT_MS_LANGID_ALBANIAN_ALBANIA 0x041C
620
+ #define TT_MS_LANGID_SWEDISH_SWEDEN 0x041D
621
+ #define TT_MS_LANGID_SWEDISH_FINLAND 0x081D
622
+ #define TT_MS_LANGID_THAI_THAILAND 0x041E
623
+ #define TT_MS_LANGID_TURKISH_TURKEY 0x041F
624
624
  #define TT_MS_LANGID_URDU_PAKISTAN 0x0420
625
625
  #define TT_MS_LANGID_URDU_INDIA 0x0820
626
626
  #define TT_MS_LANGID_INDONESIAN_INDONESIA 0x0421
@@ -633,13 +633,13 @@ FT_BEGIN_HEADER
633
633
  #define TT_MS_LANGID_CLASSIC_LITHUANIAN_LITHUANIA 0x0827
634
634
  #define TT_MS_LANGID_TAJIK_TAJIKISTAN 0x0428
635
635
  #define TT_MS_LANGID_FARSI_IRAN 0x0429
636
- #define TT_MS_LANGID_VIETNAMESE_VIET_NAM 0x042a
637
- #define TT_MS_LANGID_ARMENIAN_ARMENIA 0x042b
638
- #define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN 0x042c
639
- #define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC 0x082c
640
- #define TT_MS_LANGID_BASQUE_SPAIN 0x042d
641
- #define TT_MS_LANGID_SORBIAN_GERMANY 0x042e
642
- #define TT_MS_LANGID_MACEDONIAN_MACEDONIA 0x042f
636
+ #define TT_MS_LANGID_VIETNAMESE_VIET_NAM 0x042A
637
+ #define TT_MS_LANGID_ARMENIAN_ARMENIA 0x042B
638
+ #define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN 0x042C
639
+ #define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC 0x082C
640
+ #define TT_MS_LANGID_BASQUE_SPAIN 0x042D
641
+ #define TT_MS_LANGID_SORBIAN_GERMANY 0x042E
642
+ #define TT_MS_LANGID_MACEDONIAN_MACEDONIA 0x042F
643
643
  #define TT_MS_LANGID_SUTU_SOUTH_AFRICA 0x0430
644
644
  #define TT_MS_LANGID_TSONGA_SOUTH_AFRICA 0x0431
645
645
  #define TT_MS_LANGID_TSWANA_SOUTH_AFRICA 0x0432
@@ -650,32 +650,32 @@ FT_BEGIN_HEADER
650
650
  #define TT_MS_LANGID_GEORGIAN_GEORGIA 0x0437
651
651
  #define TT_MS_LANGID_FAEROESE_FAEROE_ISLANDS 0x0438
652
652
  #define TT_MS_LANGID_HINDI_INDIA 0x0439
653
- #define TT_MS_LANGID_MALTESE_MALTA 0x043a
653
+ #define TT_MS_LANGID_MALTESE_MALTA 0x043A
654
654
  /* Added by XPsp2 Platform SDK (2004-07-26) */
655
- #define TT_MS_LANGID_SAMI_NORTHERN_NORWAY 0x043b
656
- #define TT_MS_LANGID_SAMI_NORTHERN_SWEDEN 0x083b
657
- #define TT_MS_LANGID_SAMI_NORTHERN_FINLAND 0x0C3b
658
- #define TT_MS_LANGID_SAMI_LULE_NORWAY 0x103b
659
- #define TT_MS_LANGID_SAMI_LULE_SWEDEN 0x143b
660
- #define TT_MS_LANGID_SAMI_SOUTHERN_NORWAY 0x183b
661
- #define TT_MS_LANGID_SAMI_SOUTHERN_SWEDEN 0x1C3b
662
- #define TT_MS_LANGID_SAMI_SKOLT_FINLAND 0x203b
663
- #define TT_MS_LANGID_SAMI_INARI_FINLAND 0x243b
655
+ #define TT_MS_LANGID_SAMI_NORTHERN_NORWAY 0x043B
656
+ #define TT_MS_LANGID_SAMI_NORTHERN_SWEDEN 0x083B
657
+ #define TT_MS_LANGID_SAMI_NORTHERN_FINLAND 0x0C3B
658
+ #define TT_MS_LANGID_SAMI_LULE_NORWAY 0x103B
659
+ #define TT_MS_LANGID_SAMI_LULE_SWEDEN 0x143B
660
+ #define TT_MS_LANGID_SAMI_SOUTHERN_NORWAY 0x183B
661
+ #define TT_MS_LANGID_SAMI_SOUTHERN_SWEDEN 0x1C3B
662
+ #define TT_MS_LANGID_SAMI_SKOLT_FINLAND 0x203B
663
+ #define TT_MS_LANGID_SAMI_INARI_FINLAND 0x243B
664
664
  /* ... and we also keep our old identifier... */
665
- #define TT_MS_LANGID_SAAMI_LAPONIA 0x043b
665
+ #define TT_MS_LANGID_SAAMI_LAPONIA 0x043B
666
666
 
667
667
  #if 0 /* this seems to be a previous inversion */
668
- #define TT_MS_LANGID_IRISH_GAELIC_IRELAND 0x043c
669
- #define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM 0x083c
668
+ #define TT_MS_LANGID_IRISH_GAELIC_IRELAND 0x043C
669
+ #define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM 0x083C
670
670
  #else
671
- #define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM 0x083c
672
- #define TT_MS_LANGID_IRISH_GAELIC_IRELAND 0x043c
671
+ #define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM 0x083C
672
+ #define TT_MS_LANGID_IRISH_GAELIC_IRELAND 0x043C
673
673
  #endif
674
674
 
675
- #define TT_MS_LANGID_YIDDISH_GERMANY 0x043d
676
- #define TT_MS_LANGID_MALAY_MALAYSIA 0x043e
677
- #define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM 0x083e
678
- #define TT_MS_LANGID_KAZAK_KAZAKSTAN 0x043f
675
+ #define TT_MS_LANGID_YIDDISH_GERMANY 0x043D
676
+ #define TT_MS_LANGID_MALAY_MALAYSIA 0x043E
677
+ #define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM 0x083E
678
+ #define TT_MS_LANGID_KAZAK_KAZAKSTAN 0x043F
679
679
  #define TT_MS_LANGID_KIRGHIZ_KIRGHIZSTAN /* Cyrillic*/ 0x0440
680
680
  /* alias declared in Windows 2000 */
681
681
  #define TT_MS_LANGID_KIRGHIZ_KIRGHIZ_REPUBLIC \
@@ -693,12 +693,12 @@ FT_BEGIN_HEADER
693
693
  #define TT_MS_LANGID_GUJARATI_INDIA 0x0447
694
694
  #define TT_MS_LANGID_ORIYA_INDIA 0x0448
695
695
  #define TT_MS_LANGID_TAMIL_INDIA 0x0449
696
- #define TT_MS_LANGID_TELUGU_INDIA 0x044a
697
- #define TT_MS_LANGID_KANNADA_INDIA 0x044b
698
- #define TT_MS_LANGID_MALAYALAM_INDIA 0x044c
699
- #define TT_MS_LANGID_ASSAMESE_INDIA 0x044d
700
- #define TT_MS_LANGID_MARATHI_INDIA 0x044e
701
- #define TT_MS_LANGID_SANSKRIT_INDIA 0x044f
696
+ #define TT_MS_LANGID_TELUGU_INDIA 0x044A
697
+ #define TT_MS_LANGID_KANNADA_INDIA 0x044B
698
+ #define TT_MS_LANGID_MALAYALAM_INDIA 0x044C
699
+ #define TT_MS_LANGID_ASSAMESE_INDIA 0x044D
700
+ #define TT_MS_LANGID_MARATHI_INDIA 0x044E
701
+ #define TT_MS_LANGID_SANSKRIT_INDIA 0x044F
702
702
  #define TT_MS_LANGID_MONGOLIAN_MONGOLIA /* Cyrillic */ 0x0450
703
703
  #define TT_MS_LANGID_MONGOLIAN_MONGOLIA_MONGOLIAN 0x0850
704
704
  #define TT_MS_LANGID_TIBETAN_CHINA 0x0451
@@ -732,13 +732,13 @@ FT_BEGIN_HEADER
732
732
  #define TT_MS_LANGID_SINDHI_INDIA /* Arabic */ 0x0459
733
733
  #define TT_MS_LANGID_SINDHI_PAKISTAN 0x0859
734
734
  /* Missing a LCID for Sindhi in Devanagari script */
735
- #define TT_MS_LANGID_SYRIAC_SYRIA 0x045a
736
- #define TT_MS_LANGID_SINHALESE_SRI_LANKA 0x045b
737
- #define TT_MS_LANGID_CHEROKEE_UNITED_STATES 0x045c
738
- #define TT_MS_LANGID_INUKTITUT_CANADA 0x045d
739
- #define TT_MS_LANGID_AMHARIC_ETHIOPIA 0x045e
740
- #define TT_MS_LANGID_TAMAZIGHT_MOROCCO /* Arabic */ 0x045f
741
- #define TT_MS_LANGID_TAMAZIGHT_MOROCCO_LATIN 0x085f
735
+ #define TT_MS_LANGID_SYRIAC_SYRIA 0x045A
736
+ #define TT_MS_LANGID_SINHALESE_SRI_LANKA 0x045B
737
+ #define TT_MS_LANGID_CHEROKEE_UNITED_STATES 0x045C
738
+ #define TT_MS_LANGID_INUKTITUT_CANADA 0x045D
739
+ #define TT_MS_LANGID_AMHARIC_ETHIOPIA 0x045E
740
+ #define TT_MS_LANGID_TAMAZIGHT_MOROCCO /* Arabic */ 0x045F
741
+ #define TT_MS_LANGID_TAMAZIGHT_MOROCCO_LATIN 0x085F
742
742
  /* Missing a LCID for Tifinagh script */
743
743
  #define TT_MS_LANGID_KASHMIRI_PAKISTAN /* Arabic */ 0x0460
744
744
  /* Spelled this way by XPsp2 Platform SDK (2004-07-26) */
@@ -758,15 +758,15 @@ FT_BEGIN_HEADER
758
758
  #define TT_MS_LANGID_FULFULDE_NIGERIA 0x0467
759
759
  #define TT_MS_LANGID_HAUSA_NIGERIA 0x0468
760
760
  #define TT_MS_LANGID_IBIBIO_NIGERIA 0x0469
761
- #define TT_MS_LANGID_YORUBA_NIGERIA 0x046a
762
- #define TT_MS_LANGID_QUECHUA_BOLIVIA 0x046b
763
- #define TT_MS_LANGID_QUECHUA_ECUADOR 0x086b
764
- #define TT_MS_LANGID_QUECHUA_PERU 0x0c6b
765
- #define TT_MS_LANGID_SEPEDI_SOUTH_AFRICA 0x046c
761
+ #define TT_MS_LANGID_YORUBA_NIGERIA 0x046A
762
+ #define TT_MS_LANGID_QUECHUA_BOLIVIA 0x046B
763
+ #define TT_MS_LANGID_QUECHUA_ECUADOR 0x086B
764
+ #define TT_MS_LANGID_QUECHUA_PERU 0x0C6B
765
+ #define TT_MS_LANGID_SEPEDI_SOUTH_AFRICA 0x046C
766
766
  /* Also spelled by XPsp2 Platform SDK (2004-07-26) */
767
767
  #define TT_MS_LANGID_SOTHO_SOUTHERN_SOUTH_AFRICA \
768
768
  TT_MS_LANGID_SEPEDI_SOUTH_AFRICA
769
- /* language codes 0x046d, 0x046e and 0x046f are (still) unknown. */
769
+ /* language codes 0x046D, 0x046E and 0x046F are (still) unknown. */
770
770
  #define TT_MS_LANGID_IGBO_NIGERIA 0x0470
771
771
  #define TT_MS_LANGID_KANURI_NIGERIA 0x0471
772
772
  #define TT_MS_LANGID_OROMO_ETHIOPIA 0x0472
@@ -783,12 +783,12 @@ FT_BEGIN_HEADER
783
783
  /* studying). */
784
784
  #define TT_MS_LANGID_YI_CHINA 0x0478
785
785
  #define TT_MS_LANGID_PAPIAMENTU_NETHERLANDS_ANTILLES 0x0479
786
- /* language codes from 0x047a to 0x047f are (still) unknown. */
786
+ /* language codes from 0x047A to 0x047F are (still) unknown. */
787
787
  #define TT_MS_LANGID_UIGHUR_CHINA 0x0480
788
788
  #define TT_MS_LANGID_MAORI_NEW_ZEALAND 0x0481
789
789
 
790
790
  #if 0 /* not deemed useful for fonts */
791
- #define TT_MS_LANGID_HUMAN_INTERFACE_DEVICE 0x04ff
791
+ #define TT_MS_LANGID_HUMAN_INTERFACE_DEVICE 0x04FF
792
792
  #endif
793
793
 
794
794