pango 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. checksums.yaml +7 -0
  2. data/README +2 -2
  3. data/Rakefile +7 -5
  4. data/ext/pango/extconf.rb +4 -4
  5. data/ext/pango/rbpango.c +0 -9
  6. data/ext/pango/rbpango.h +2 -10
  7. data/ext/pango/rbpangoanalysis.c +0 -4
  8. data/ext/pango/rbpangoattribute.c +1 -26
  9. data/ext/pango/rbpangoattrlist.c +0 -4
  10. data/ext/pango/rbpangocairo.c +13 -12
  11. data/ext/pango/rbpangocairocontext.c +6 -26
  12. data/ext/pango/rbpangocontext.c +2 -14
  13. data/ext/pango/rbpangofont.c +0 -12
  14. data/ext/pango/rbpangofontdescription.c +0 -5
  15. data/ext/pango/rbpangofontface.c +0 -6
  16. data/ext/pango/rbpangofontfamily.c +0 -3
  17. data/ext/pango/rbpangofontmap.c +0 -4
  18. data/ext/pango/rbpangofontmetrics.c +1 -4
  19. data/ext/pango/rbpangofontset.c +0 -4
  20. data/ext/pango/rbpangoglyphitem.c +0 -8
  21. data/ext/pango/rbpangoglyphstring.c +0 -4
  22. data/ext/pango/rbpangoitem.c +0 -16
  23. data/ext/pango/rbpangolanguage.c +0 -5
  24. data/ext/pango/rbpangolayout.c +36 -19
  25. data/ext/pango/rbpangolayoutline.c +0 -33
  26. data/ext/pango/rbpangologattr.c +0 -5
  27. data/ext/pango/rbpangomatrix.c +0 -10
  28. data/ext/pango/rbpangoprivate.h +0 -4
  29. data/ext/pango/rbpangorenderer.c +0 -6
  30. data/ext/pango/rbpangoscript.c +0 -4
  31. data/ext/pango/rbpangoscriptiter.c +0 -5
  32. data/lib/1.9/pango.so +0 -0
  33. data/lib/2.0/pango.so +0 -0
  34. data/test/{test_layout.rb → test-layout.rb} +14 -0
  35. data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
  36. data/vendor/local/bin/hb-shape.exe +0 -0
  37. data/vendor/local/bin/hb-view.exe +0 -0
  38. data/vendor/local/bin/libharfbuzz-0.dll +0 -0
  39. data/vendor/local/bin/libpango-1.0-0.dll +0 -0
  40. data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
  41. data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
  42. data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
  43. data/vendor/local/bin/libstdc++-6.dll +0 -0
  44. data/vendor/local/bin/pango-querymodules.exe +0 -0
  45. data/vendor/local/bin/pango-view.exe +0 -0
  46. data/vendor/local/include/harfbuzz/hb-buffer.h +10 -10
  47. data/vendor/local/include/harfbuzz/hb-common.h +147 -131
  48. data/vendor/local/include/harfbuzz/{hb-uniscribe.h → hb-deprecated.h} +15 -13
  49. data/vendor/local/include/harfbuzz/hb-face.h +117 -0
  50. data/vendor/local/include/harfbuzz/hb-font.h +130 -77
  51. data/vendor/local/include/harfbuzz/hb-ot-layout.h +6 -0
  52. data/vendor/local/include/harfbuzz/hb-set.h +2 -0
  53. data/vendor/local/include/harfbuzz/hb-unicode.h +97 -9
  54. data/vendor/local/include/harfbuzz/hb-version.h +2 -2
  55. data/vendor/local/include/harfbuzz/hb.h +2 -0
  56. data/vendor/local/include/pango-1.0/pango/pango-attributes.h +213 -4
  57. data/vendor/local/include/pango-1.0/pango/pango-break.h +53 -0
  58. data/vendor/local/include/pango-1.0/pango/pango-coverage.h +21 -0
  59. data/vendor/local/include/pango-1.0/pango/pango-engine.h +46 -0
  60. data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
  61. data/vendor/local/include/pango-1.0/pango/pango-font.h +234 -0
  62. data/vendor/local/include/pango-1.0/pango/pango-fontmap.h +68 -0
  63. data/vendor/local/include/pango-1.0/pango/pango-fontset.h +42 -0
  64. data/vendor/local/include/pango-1.0/pango/pango-glyph-item.h +64 -0
  65. data/vendor/local/include/pango-1.0/pango/pango-glyph.h +55 -0
  66. data/vendor/local/include/pango-1.0/pango/pango-item.h +28 -0
  67. data/vendor/local/include/pango-1.0/pango/pango-language.h +5 -0
  68. data/vendor/local/include/pango-1.0/pango/pango-layout.h +43 -0
  69. data/vendor/local/include/pango-1.0/pango/pango-modules.h +11 -0
  70. data/vendor/local/include/pango-1.0/pango/pango-ot.h +149 -0
  71. data/vendor/local/include/pango-1.0/pango/pango-script.h +102 -0
  72. data/vendor/local/include/pango-1.0/pango/pango-tabs.h +11 -0
  73. data/vendor/local/include/pango-1.0/pango/pango-types.h +102 -2
  74. data/vendor/local/include/pango-1.0/pango/pango-utils.h +44 -0
  75. data/vendor/local/include/pango-1.0/pango/pangocairo.h +14 -0
  76. data/vendor/local/include/pango-1.0/pango/pangofc-fontmap.h +2 -2
  77. data/vendor/local/include/pango-1.0/pango/pangoft2.h +13 -0
  78. data/vendor/local/include/pango-1.0/pango/pangowin32.h +6 -0
  79. data/vendor/local/lib/girepository-1.0/Pango-1.0.typelib +0 -0
  80. data/vendor/local/lib/girepository-1.0/PangoCairo-1.0.typelib +0 -0
  81. data/vendor/local/lib/libharfbuzz.dll.a +0 -0
  82. data/vendor/local/lib/libharfbuzz.la +5 -5
  83. data/vendor/local/lib/libpango-1.0.dll.a +0 -0
  84. data/vendor/local/lib/libpango-1.0.la +2 -2
  85. data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
  86. data/vendor/local/lib/libpangocairo-1.0.la +4 -4
  87. data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
  88. data/vendor/local/lib/libpangoft2-1.0.la +3 -3
  89. data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
  90. data/vendor/local/lib/libpangowin32-1.0.la +2 -2
  91. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
  92. data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
  93. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll +0 -0
  94. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll.a +0 -0
  95. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.la +1 -1
  96. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll +0 -0
  97. data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll.a +0 -0
  98. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll +0 -0
  99. data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll.a +0 -0
  100. data/vendor/local/lib/pkgconfig/harfbuzz.pc +5 -5
  101. data/vendor/local/lib/pkgconfig/pango.pc +1 -1
  102. data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
  103. data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
  104. data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
  105. data/vendor/local/share/gir-1.0/Pango-1.0.gir +1824 -1434
  106. data/vendor/local/share/gir-1.0/PangoCairo-1.0.gir +109 -103
  107. data/vendor/local/share/gir-1.0/PangoFT2-1.0.gir +18 -15
  108. data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +71 -0
  109. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +1419 -0
  110. data/vendor/local/share/gtk-doc/html/harfbuzz/ch01.html +98 -0
  111. data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +48 -0
  112. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +415 -0
  113. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html +1045 -0
  114. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +1073 -0
  115. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +67 -0
  116. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +90 -0
  117. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +344 -0
  118. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +1617 -0
  119. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +130 -0
  120. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +75 -0
  121. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +52 -0
  122. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +76 -0
  123. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +75 -0
  124. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +544 -0
  125. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +105 -0
  126. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +67 -0
  127. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +540 -0
  128. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +264 -0
  129. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html +194 -0
  130. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +1180 -0
  131. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +67 -0
  132. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +156 -0
  133. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +52 -0
  134. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +591 -0
  135. data/vendor/local/share/gtk-doc/html/harfbuzz/home.png +0 -0
  136. data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +105 -0
  137. data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +650 -0
  138. data/vendor/local/share/gtk-doc/html/harfbuzz/left-insensitive.png +0 -0
  139. data/vendor/local/share/gtk-doc/html/harfbuzz/left.png +0 -0
  140. data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +32 -0
  141. data/vendor/local/share/gtk-doc/html/harfbuzz/right-insensitive.png +0 -0
  142. data/vendor/local/share/gtk-doc/html/harfbuzz/right.png +0 -0
  143. data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +321 -0
  144. data/vendor/local/share/gtk-doc/html/harfbuzz/up-insensitive.png +0 -0
  145. data/vendor/local/share/gtk-doc/html/harfbuzz/up.png +0 -0
  146. data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +3 -4
  147. data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +3 -4
  148. data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +2 -2
  149. data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +4 -9
  150. data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +8 -13
  151. data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +2 -2
  152. data/vendor/local/share/gtk-doc/html/pango/{pango-pango-renderer.html → PangoRenderer.html} +99 -102
  153. data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +20 -29
  154. data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +2 -2
  155. data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +2 -2
  156. data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +2 -2
  157. data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +6 -2
  158. data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +2 -2
  159. data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +2 -2
  160. data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +4 -11
  161. data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +3 -3
  162. data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +15 -4
  163. data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +4 -4
  164. data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +6 -6
  165. data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +42 -0
  166. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +58 -0
  167. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +6 -5
  168. data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +41 -0
  169. data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +2 -2
  170. data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +2 -2
  171. data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +19 -19
  172. data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +2 -2
  173. data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +31 -27
  174. data/vendor/local/share/gtk-doc/html/pango/index.html +7 -5
  175. data/vendor/local/share/gtk-doc/html/pango/index.sgml +38 -38
  176. data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +5 -5
  177. data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +6 -9
  178. data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +113 -66
  179. data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +2 -2
  180. data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +8 -12
  181. data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +5 -8
  182. data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +90 -53
  183. data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +10 -10
  184. data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +21 -8
  185. data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +44 -15
  186. data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +2 -2
  187. data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +2 -2
  188. data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +12 -12
  189. data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +87 -90
  190. data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +2 -5
  191. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +38 -31
  192. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +10 -18
  193. data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +10 -11
  194. data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +4 -6
  195. data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +3 -4
  196. data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +12 -12
  197. data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +4 -4
  198. data/vendor/local/share/gtk-doc/html/pango/pango-querymodules.html +2 -2
  199. data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +34 -31
  200. data/vendor/local/share/gtk-doc/html/pango/pango.html +2 -2
  201. data/vendor/local/share/gtk-doc/html/pango/rendering.html +2 -2
  202. data/vendor/local/share/gtk-doc/html/pango/tools.html +2 -2
  203. data/vendor/local/share/man/man1/pango-querymodules.1 +2 -2
  204. data/vendor/local/share/man/man1/pango-view.1 +2 -2
  205. metadata +57 -24
  206. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  207. data/vendor/local/include/harfbuzz/hb-gobject.h +0 -69
  208. data/vendor/local/share/gtk-doc/html/pango/api-index-1-28.html +0 -31
@@ -24,30 +24,6 @@
24
24
  #define RG_TARGET_NAMESPACE cLayoutLine
25
25
  #define _SELF(r) (RVAL2PANGOLAYOUTLINE(r))
26
26
 
27
- /**********************************/
28
- #if !PANGO_CHECK_VERSION(1,9,0)
29
- static PangoLayoutLine*
30
- layout_line_copy(PangoLayoutLine *ref)
31
- {
32
- g_return_val_if_fail (ref != NULL, NULL);
33
- pango_layout_line_ref(ref);
34
- return ref;
35
- }
36
-
37
- GType
38
- pango_layout_line_get_type(void)
39
- {
40
- static GType our_type = 0;
41
-
42
- if (our_type == 0)
43
- our_type = g_boxed_type_register_static ("PangoLayoutLine",
44
- (GBoxedCopyFunc)layout_line_copy,
45
- (GBoxedFreeFunc)pango_layout_line_unref);
46
- return our_type;
47
- }
48
- #endif
49
- /**********************************/
50
-
51
27
  static VALUE
52
28
  rg_extents(VALUE self)
53
29
  {
@@ -148,7 +124,6 @@ rg_set_length(VALUE self, VALUE val)
148
124
  return self;
149
125
  }
150
126
 
151
- #if PANGO_CHECK_VERSION(1,2,0)
152
127
  static VALUE
153
128
  rg_runs(VALUE self)
154
129
  {
@@ -166,7 +141,6 @@ rg_runs(VALUE self)
166
141
  }
167
142
  return ary;
168
143
  }
169
- #endif
170
144
 
171
145
  struct layout_line_set_runs_args {
172
146
  PangoLayoutLine *line;
@@ -214,7 +188,6 @@ rg_set_runs(VALUE self, VALUE attrs)
214
188
  return self;
215
189
  }
216
190
 
217
- #if PANGO_CHECK_VERSION(1,4,0)
218
191
  static VALUE
219
192
  rg_paragraph_start_p(VALUE self)
220
193
  {
@@ -240,7 +213,6 @@ rg_set_resolved_dir(VALUE self, VALUE val)
240
213
  _SELF(self)->resolved_dir = NUM2UINT(val);
241
214
  return self;
242
215
  }
243
- #endif
244
216
 
245
217
  void
246
218
  Init_pango_layout_line(VALUE mPango)
@@ -258,15 +230,10 @@ Init_pango_layout_line(VALUE mPango)
258
230
  RG_DEF_METHOD(set_start_index, 1);
259
231
  RG_DEF_METHOD(length, 0);
260
232
  RG_DEF_METHOD(set_length, 1);
261
- #if PANGO_CHECK_VERSION(1,2,0)
262
233
  RG_DEF_METHOD(runs, 0);
263
- #endif
264
234
  RG_DEF_METHOD(set_runs, 1);
265
-
266
- #if PANGO_CHECK_VERSION(1,4,0)
267
235
  RG_DEF_METHOD_P(paragraph_start, 0);
268
236
  RG_DEF_METHOD(set_paragraph_start, 1);
269
237
  RG_DEF_METHOD(resolved_dir, 0);
270
238
  RG_DEF_METHOD(set_resolved_dir, 1);
271
- #endif
272
239
  }
@@ -84,10 +84,7 @@ ATTR_BOOL(is_word_end);
84
84
  ATTR_BOOL(is_sentence_boundary);
85
85
  ATTR_BOOL(is_sentence_start);
86
86
  ATTR_BOOL(is_sentence_end);
87
-
88
- #if PANGO_CHECK_VERSION(1,4,0)
89
87
  ATTR_BOOL(backspace_deletes_character);
90
- #endif
91
88
 
92
89
  void
93
90
  Init_pango_logattr(VALUE mPango)
@@ -107,8 +104,6 @@ Init_pango_logattr(VALUE mPango)
107
104
  DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, sentence_start);
108
105
  DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, sentence_end);
109
106
 
110
- #if PANGO_CHECK_VERSION(1,4,0)
111
107
  rbg_define_method(RG_TARGET_NAMESPACE, "backspace_deletes_character?", log_get_backspace_deletes_character, 0);
112
108
  rbg_define_method(RG_TARGET_NAMESPACE, "set_backspace_deletes_character", log_set_backspace_deletes_character, 1);
113
- #endif
114
109
  }
@@ -21,8 +21,6 @@
21
21
 
22
22
  #include "rbpangoprivate.h"
23
23
 
24
- #if PANGO_CHECK_VERSION(1,6,0)
25
-
26
24
  #define RG_TARGET_NAMESPACE cMatrix
27
25
  #define _SELF(self) (RVAL2PANGOMATRIX(self))
28
26
 
@@ -99,13 +97,11 @@ rg_concat_bang(VALUE self, VALUE new_matrix)
99
97
  return self;
100
98
  }
101
99
 
102
- #if PANGO_CHECK_VERSION(1,12,0)
103
100
  static VALUE
104
101
  rg_font_scale_factor(VALUE self)
105
102
  {
106
103
  return rb_float_new(pango_matrix_get_font_scale_factor(_SELF(self)));
107
104
  }
108
- #endif
109
105
 
110
106
  ATTR_FLOAT(xx);
111
107
  ATTR_FLOAT(xy);
@@ -122,12 +118,9 @@ rg_to_a(VALUE self)
122
118
  INT2NUM(matrix->yy), INT2NUM(matrix->x0), INT2NUM(matrix->y0));
123
119
  }
124
120
 
125
- #endif
126
-
127
121
  void
128
122
  Init_pango_matrix(VALUE mPango)
129
123
  {
130
- #if PANGO_CHECK_VERSION(1,6,0)
131
124
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_MATRIX, "Matrix", mPango);
132
125
 
133
126
  RG_DEF_METHOD(initialize, -1);
@@ -135,9 +128,7 @@ Init_pango_matrix(VALUE mPango)
135
128
  RG_DEF_METHOD_BANG(scale, 2);
136
129
  RG_DEF_METHOD_BANG(rotate, 1);
137
130
  RG_DEF_METHOD_BANG(concat, 1);
138
- #if PANGO_CHECK_VERSION(1,12,0)
139
131
  RG_DEF_METHOD(font_scale_factor, 0);
140
- #endif
141
132
  #if PANGO_CHECK_VERSION(1,16,0)
142
133
  RG_DEF_METHOD(gravity, 0);
143
134
  #endif
@@ -149,5 +140,4 @@ Init_pango_matrix(VALUE mPango)
149
140
  DEFINE_ACCESSOR(yy);
150
141
  DEFINE_ACCESSOR(x0);
151
142
  DEFINE_ACCESSOR(y0);
152
- #endif
153
143
  }
@@ -7,10 +7,6 @@
7
7
  # define rb_errinfo() (ruby_errinfo)
8
8
  #endif
9
9
 
10
- #if PANGO_CHECK_VERSION(1,10,0) && defined(HAVE_RB_CAIRO_H)
11
- # define CAIRO_AVAILABLE 1
12
- #endif
13
-
14
10
  G_BEGIN_DECLS
15
11
 
16
12
  G_GNUC_INTERNAL void Init_pango_analysis(VALUE mPango);
@@ -21,7 +21,6 @@
21
21
 
22
22
  #include "rbpangoprivate.h"
23
23
 
24
- #if PANGO_CHECK_VERSION(1,8,0)
25
24
  #define RG_TARGET_NAMESPACE cRenderer
26
25
  #define _SELF(self) (RVAL2PANGORENDERER(self))
27
26
 
@@ -166,12 +165,9 @@ rg_matrix(VALUE self)
166
165
  return PANGOMATRIX2RVAL((PangoMatrix*)matrix);
167
166
  }
168
167
 
169
- #endif
170
-
171
168
  void
172
169
  Init_pangorenderer(VALUE mPango)
173
170
  {
174
- #if PANGO_CHECK_VERSION(1,8,0)
175
171
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_RENDERER, "Renderer", mPango);
176
172
 
177
173
  RG_DEF_METHOD(draw_layout, 3);
@@ -194,6 +190,4 @@ Init_pangorenderer(VALUE mPango)
194
190
  G_DEF_CLASS(PANGO_TYPE_RENDER_PART, "Part", RG_TARGET_NAMESPACE);
195
191
  G_DEF_CONSTANTS(RG_TARGET_NAMESPACE, PANGO_TYPE_RENDER_PART, "PANGO_RENDER_");
196
192
  #endif
197
-
198
- #endif
199
193
  }
@@ -21,7 +21,6 @@
21
21
 
22
22
  #include "rbpangoprivate.h"
23
23
 
24
- #if PANGO_CHECK_VERSION(1,4,0)
25
24
  #define RG_TARGET_NAMESPACE cScript
26
25
  #define _SELF(r) (RVAL2PANGOSCRIPT(r))
27
26
 
@@ -71,17 +70,14 @@ rg_get_gravity(int argc, VALUE *argv, VALUE self)
71
70
  gboolean pango_language_includes_script (PangoLanguage *language,
72
71
  PangoScript script);
73
72
  */
74
- #endif
75
73
 
76
74
  void
77
75
  Init_pango_script(VALUE mPango)
78
76
  {
79
- #if PANGO_CHECK_VERSION(1,4,0)
80
77
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_SCRIPT, "Script", mPango);
81
78
 
82
79
  RG_DEF_SMETHOD(for_unichar, 1);
83
80
  RG_DEF_METHOD(sample_language, 0);
84
- #endif
85
81
  #if PANGO_CHECK_VERSION(1,16,0)
86
82
  RG_DEF_METHOD(get_gravity, -1);
87
83
  #endif
@@ -21,8 +21,6 @@
21
21
 
22
22
  #include "rbpangoprivate.h"
23
23
 
24
- #if PANGO_CHECK_VERSION(1,4,0)
25
-
26
24
  /**********************************/
27
25
  static PangoScriptIter*
28
26
  rbpango_script_iter_copy(PangoScriptIter *ref)
@@ -82,16 +80,13 @@ rg_next_bang(VALUE self)
82
80
  {
83
81
  return CBOOL2RVAL(pango_script_iter_next(_SELF(self)));
84
82
  }
85
- #endif
86
83
 
87
84
  void
88
85
  Init_pango_script_iter(VALUE mPango)
89
86
  {
90
- #if PANGO_CHECK_VERSION(1,4,0)
91
87
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_SCRIPT_ITER, "ScriptIter", mPango);
92
88
 
93
89
  RG_DEF_METHOD(initialize, 1);
94
90
  RG_DEF_METHOD(range, 0);
95
91
  RG_DEF_METHOD_BANG(next, 0);
96
- #endif
97
92
  }
data/lib/1.9/pango.so CHANGED
Binary file
data/lib/2.0/pango.so CHANGED
Binary file
@@ -17,4 +17,18 @@ class TestLayout < Test::Unit::TestCase
17
17
  @layout.font_description = description
18
18
  assert_equal("monospace 10", @layout.font_description.to_s)
19
19
  end
20
+
21
+ def test_height
22
+ assert_equal(-1, @layout.height)
23
+ end
24
+
25
+ def test_set_height
26
+ new_height = 29 * Pango::SCALE
27
+ @layout.height = new_height
28
+ assert_equal(new_height, @layout.height)
29
+ end
30
+
31
+ def test_ellipsized?
32
+ assert_false(@layout.ellipsized?)
33
+ end
20
34
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -171,11 +171,11 @@ void
171
171
  hb_buffer_guess_segment_properties (hb_buffer_t *buffer);
172
172
 
173
173
 
174
- typedef enum {
175
- HB_BUFFER_FLAGS_DEFAULT = 0x00000000,
176
- HB_BUFFER_FLAG_BOT = 0x00000001, /* Beginning-of-text */
177
- HB_BUFFER_FLAG_EOT = 0x00000002, /* End-of-text */
178
- HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES = 0x00000004
174
+ typedef enum { /*< flags >*/
175
+ HB_BUFFER_FLAG_DEFAULT = 0x00000000u,
176
+ HB_BUFFER_FLAG_BOT = 0x00000001u, /* Beginning-of-text */
177
+ HB_BUFFER_FLAG_EOT = 0x00000002u, /* End-of-text */
178
+ HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES = 0x00000004u
179
179
  } hb_buffer_flags_t;
180
180
 
181
181
  void
@@ -274,11 +274,11 @@ hb_buffer_normalize_glyphs (hb_buffer_t *buffer);
274
274
  * Serialize
275
275
  */
276
276
 
277
- typedef enum {
278
- HB_BUFFER_SERIALIZE_FLAGS_DEFAULT = 0x00000000,
279
- HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS = 0x00000001,
280
- HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS = 0x00000002,
281
- HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES = 0x00000004
277
+ typedef enum { /*< flags >*/
278
+ HB_BUFFER_SERIALIZE_FLAG_DEFAULT = 0x00000000u,
279
+ HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS = 0x00000001u,
280
+ HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS = 0x00000002u,
281
+ HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES = 0x00000004u
282
282
  } hb_buffer_serialize_flags_t;
283
283
 
284
284
  typedef enum {
@@ -90,7 +90,7 @@ typedef union _hb_var_int_t {
90
90
 
91
91
  typedef uint32_t hb_tag_t;
92
92
 
93
- #define HB_TAG(a,b,c,d) ((hb_tag_t)((((uint8_t)(a))<<24)|(((uint8_t)(b))<<16)|(((uint8_t)(c))<<8)|((uint8_t)(d))))
93
+ #define HB_TAG(c1,c2,c3,c4) ((hb_tag_t)((((uint8_t)(c1))<<24)|(((uint8_t)(c2))<<16)|(((uint8_t)(c3))<<8)|((uint8_t)(c4))))
94
94
  #define HB_UNTAG(tag) ((uint8_t)((tag)>>24)), ((uint8_t)((tag)>>16)), ((uint8_t)((tag)>>8)), ((uint8_t)(tag))
95
95
 
96
96
  #define HB_TAG_NONE HB_TAG(0,0,0,0)
@@ -131,7 +131,7 @@ hb_direction_to_string (hb_direction_t direction);
131
131
 
132
132
  /* hb_language_t */
133
133
 
134
- typedef struct hb_language_impl_t *hb_language_t;
134
+ typedef const struct hb_language_impl_t *hb_language_t;
135
135
 
136
136
  /* len=-1 means str is NUL-terminated */
137
137
  hb_language_t
@@ -153,137 +153,153 @@ hb_language_get_default (void);
153
153
  /* Unicode Character Database property: Script (sc) */
154
154
  typedef enum
155
155
  {
156
- /* Unicode-1.1 additions */
157
- HB_SCRIPT_COMMON = HB_TAG ('Z','y','y','y'),
158
- HB_SCRIPT_ARABIC = HB_TAG ('A','r','a','b'),
159
- HB_SCRIPT_ARMENIAN = HB_TAG ('A','r','m','n'),
160
- HB_SCRIPT_BENGALI = HB_TAG ('B','e','n','g'),
161
- HB_SCRIPT_BOPOMOFO = HB_TAG ('B','o','p','o'),
162
- HB_SCRIPT_CANADIAN_ABORIGINAL = HB_TAG ('C','a','n','s'),
163
- HB_SCRIPT_CHEROKEE = HB_TAG ('C','h','e','r'),
164
- HB_SCRIPT_COPTIC = HB_TAG ('C','o','p','t'),
165
- HB_SCRIPT_CYRILLIC = HB_TAG ('C','y','r','l'),
166
- HB_SCRIPT_DEVANAGARI = HB_TAG ('D','e','v','a'),
167
- HB_SCRIPT_GEORGIAN = HB_TAG ('G','e','o','r'),
168
- HB_SCRIPT_GREEK = HB_TAG ('G','r','e','k'),
169
- HB_SCRIPT_GUJARATI = HB_TAG ('G','u','j','r'),
170
- HB_SCRIPT_GURMUKHI = HB_TAG ('G','u','r','u'),
171
- HB_SCRIPT_HANGUL = HB_TAG ('H','a','n','g'),
172
- HB_SCRIPT_HAN = HB_TAG ('H','a','n','i'),
173
- HB_SCRIPT_HEBREW = HB_TAG ('H','e','b','r'),
174
- HB_SCRIPT_HIRAGANA = HB_TAG ('H','i','r','a'),
175
- HB_SCRIPT_INHERITED = HB_TAG ('Z','i','n','h'),
176
- HB_SCRIPT_KANNADA = HB_TAG ('K','n','d','a'),
177
- HB_SCRIPT_KATAKANA = HB_TAG ('K','a','n','a'),
178
- HB_SCRIPT_LAO = HB_TAG ('L','a','o','o'),
179
- HB_SCRIPT_LATIN = HB_TAG ('L','a','t','n'),
180
- HB_SCRIPT_MALAYALAM = HB_TAG ('M','l','y','m'),
181
- HB_SCRIPT_MONGOLIAN = HB_TAG ('M','o','n','g'),
182
- HB_SCRIPT_OGHAM = HB_TAG ('O','g','a','m'),
183
- HB_SCRIPT_ORIYA = HB_TAG ('O','r','y','a'),
184
- HB_SCRIPT_RUNIC = HB_TAG ('R','u','n','r'),
185
- HB_SCRIPT_SYRIAC = HB_TAG ('S','y','r','c'),
186
- HB_SCRIPT_TAMIL = HB_TAG ('T','a','m','l'),
187
- HB_SCRIPT_TELUGU = HB_TAG ('T','e','l','u'),
188
- HB_SCRIPT_THAI = HB_TAG ('T','h','a','i'),
189
- HB_SCRIPT_YI = HB_TAG ('Y','i','i','i'),
190
-
191
- /* Unicode-2.0 additions */
192
- HB_SCRIPT_TIBETAN = HB_TAG ('T','i','b','t'),
193
-
194
- /* Unicode-3.0 additions */
195
- HB_SCRIPT_ETHIOPIC = HB_TAG ('E','t','h','i'),
196
- HB_SCRIPT_KHMER = HB_TAG ('K','h','m','r'),
197
- HB_SCRIPT_MYANMAR = HB_TAG ('M','y','m','r'),
198
- HB_SCRIPT_SINHALA = HB_TAG ('S','i','n','h'),
199
- HB_SCRIPT_THAANA = HB_TAG ('T','h','a','a'),
200
-
201
- /* Unicode-3.1 additions */
202
- HB_SCRIPT_DESERET = HB_TAG ('D','s','r','t'),
203
- HB_SCRIPT_GOTHIC = HB_TAG ('G','o','t','h'),
204
- HB_SCRIPT_OLD_ITALIC = HB_TAG ('I','t','a','l'),
205
-
206
- /* Unicode-3.2 additions */
207
- HB_SCRIPT_BUHID = HB_TAG ('B','u','h','d'),
208
- HB_SCRIPT_HANUNOO = HB_TAG ('H','a','n','o'),
209
- HB_SCRIPT_TAGALOG = HB_TAG ('T','g','l','g'),
210
- HB_SCRIPT_TAGBANWA = HB_TAG ('T','a','g','b'),
211
-
212
- /* Unicode-4.0 additions */
213
- HB_SCRIPT_BRAILLE = HB_TAG ('B','r','a','i'),
214
- HB_SCRIPT_CYPRIOT = HB_TAG ('C','p','r','t'),
215
- HB_SCRIPT_LIMBU = HB_TAG ('L','i','m','b'),
216
- HB_SCRIPT_LINEAR_B = HB_TAG ('L','i','n','b'),
217
- HB_SCRIPT_OSMANYA = HB_TAG ('O','s','m','a'),
218
- HB_SCRIPT_SHAVIAN = HB_TAG ('S','h','a','w'),
219
- HB_SCRIPT_TAI_LE = HB_TAG ('T','a','l','e'),
220
- HB_SCRIPT_UGARITIC = HB_TAG ('U','g','a','r'),
221
-
222
- /* Unicode-4.1 additions */
223
- HB_SCRIPT_BUGINESE = HB_TAG ('B','u','g','i'),
224
- HB_SCRIPT_GLAGOLITIC = HB_TAG ('G','l','a','g'),
225
- HB_SCRIPT_KHAROSHTHI = HB_TAG ('K','h','a','r'),
226
- HB_SCRIPT_NEW_TAI_LUE = HB_TAG ('T','a','l','u'),
227
- HB_SCRIPT_OLD_PERSIAN = HB_TAG ('X','p','e','o'),
228
- HB_SCRIPT_SYLOTI_NAGRI = HB_TAG ('S','y','l','o'),
229
- HB_SCRIPT_TIFINAGH = HB_TAG ('T','f','n','g'),
230
-
231
- /* Unicode-5.0 additions */
232
- HB_SCRIPT_BALINESE = HB_TAG ('B','a','l','i'),
233
- HB_SCRIPT_CUNEIFORM = HB_TAG ('X','s','u','x'),
234
- HB_SCRIPT_NKO = HB_TAG ('N','k','o','o'),
235
- HB_SCRIPT_PHAGS_PA = HB_TAG ('P','h','a','g'),
236
- HB_SCRIPT_PHOENICIAN = HB_TAG ('P','h','n','x'),
237
- HB_SCRIPT_UNKNOWN = HB_TAG ('Z','z','z','z'),
238
-
239
- /* Unicode-5.1 additions */
240
- HB_SCRIPT_CARIAN = HB_TAG ('C','a','r','i'),
241
- HB_SCRIPT_CHAM = HB_TAG ('C','h','a','m'),
242
- HB_SCRIPT_KAYAH_LI = HB_TAG ('K','a','l','i'),
243
- HB_SCRIPT_LEPCHA = HB_TAG ('L','e','p','c'),
244
- HB_SCRIPT_LYCIAN = HB_TAG ('L','y','c','i'),
245
- HB_SCRIPT_LYDIAN = HB_TAG ('L','y','d','i'),
246
- HB_SCRIPT_OL_CHIKI = HB_TAG ('O','l','c','k'),
247
- HB_SCRIPT_REJANG = HB_TAG ('R','j','n','g'),
248
- HB_SCRIPT_SAURASHTRA = HB_TAG ('S','a','u','r'),
249
- HB_SCRIPT_SUNDANESE = HB_TAG ('S','u','n','d'),
250
- HB_SCRIPT_VAI = HB_TAG ('V','a','i','i'),
251
-
252
- /* Unicode-5.2 additions */
253
- HB_SCRIPT_AVESTAN = HB_TAG ('A','v','s','t'),
254
- HB_SCRIPT_BAMUM = HB_TAG ('B','a','m','u'),
255
- HB_SCRIPT_EGYPTIAN_HIEROGLYPHS = HB_TAG ('E','g','y','p'),
256
- HB_SCRIPT_IMPERIAL_ARAMAIC = HB_TAG ('A','r','m','i'),
257
- HB_SCRIPT_INSCRIPTIONAL_PAHLAVI = HB_TAG ('P','h','l','i'),
258
- HB_SCRIPT_INSCRIPTIONAL_PARTHIAN = HB_TAG ('P','r','t','i'),
259
- HB_SCRIPT_JAVANESE = HB_TAG ('J','a','v','a'),
260
- HB_SCRIPT_KAITHI = HB_TAG ('K','t','h','i'),
261
- HB_SCRIPT_LISU = HB_TAG ('L','i','s','u'),
262
- HB_SCRIPT_MEETEI_MAYEK = HB_TAG ('M','t','e','i'),
263
- HB_SCRIPT_OLD_SOUTH_ARABIAN = HB_TAG ('S','a','r','b'),
264
- HB_SCRIPT_OLD_TURKIC = HB_TAG ('O','r','k','h'),
265
- HB_SCRIPT_SAMARITAN = HB_TAG ('S','a','m','r'),
266
- HB_SCRIPT_TAI_THAM = HB_TAG ('L','a','n','a'),
267
- HB_SCRIPT_TAI_VIET = HB_TAG ('T','a','v','t'),
268
-
269
- /* Unicode-6.0 additions */
270
- HB_SCRIPT_BATAK = HB_TAG ('B','a','t','k'),
271
- HB_SCRIPT_BRAHMI = HB_TAG ('B','r','a','h'),
272
- HB_SCRIPT_MANDAIC = HB_TAG ('M','a','n','d'),
273
-
274
- /* Unicode-6.1 additions */
275
- HB_SCRIPT_CHAKMA = HB_TAG ('C','a','k','m'),
276
- HB_SCRIPT_MEROITIC_CURSIVE = HB_TAG ('M','e','r','c'),
277
- HB_SCRIPT_MEROITIC_HIEROGLYPHS = HB_TAG ('M','e','r','o'),
278
- HB_SCRIPT_MIAO = HB_TAG ('P','l','r','d'),
279
- HB_SCRIPT_SHARADA = HB_TAG ('S','h','r','d'),
280
- HB_SCRIPT_SORA_SOMPENG = HB_TAG ('S','o','r','a'),
281
- HB_SCRIPT_TAKRI = HB_TAG ('T','a','k','r'),
282
-
283
- /* No script set */
284
- HB_SCRIPT_INVALID = HB_TAG_NONE
156
+ /*1.1*/ HB_SCRIPT_COMMON = HB_TAG ('Z','y','y','y'),
157
+ /*1.1*/ HB_SCRIPT_INHERITED = HB_TAG ('Z','i','n','h'),
158
+ /*5.0*/ HB_SCRIPT_UNKNOWN = HB_TAG ('Z','z','z','z'),
159
+
160
+ /*1.1*/ HB_SCRIPT_ARABIC = HB_TAG ('A','r','a','b'),
161
+ /*1.1*/ HB_SCRIPT_ARMENIAN = HB_TAG ('A','r','m','n'),
162
+ /*1.1*/ HB_SCRIPT_BENGALI = HB_TAG ('B','e','n','g'),
163
+ /*1.1*/ HB_SCRIPT_CYRILLIC = HB_TAG ('C','y','r','l'),
164
+ /*1.1*/ HB_SCRIPT_DEVANAGARI = HB_TAG ('D','e','v','a'),
165
+ /*1.1*/ HB_SCRIPT_GEORGIAN = HB_TAG ('G','e','o','r'),
166
+ /*1.1*/ HB_SCRIPT_GREEK = HB_TAG ('G','r','e','k'),
167
+ /*1.1*/ HB_SCRIPT_GUJARATI = HB_TAG ('G','u','j','r'),
168
+ /*1.1*/ HB_SCRIPT_GURMUKHI = HB_TAG ('G','u','r','u'),
169
+ /*1.1*/ HB_SCRIPT_HANGUL = HB_TAG ('H','a','n','g'),
170
+ /*1.1*/ HB_SCRIPT_HAN = HB_TAG ('H','a','n','i'),
171
+ /*1.1*/ HB_SCRIPT_HEBREW = HB_TAG ('H','e','b','r'),
172
+ /*1.1*/ HB_SCRIPT_HIRAGANA = HB_TAG ('H','i','r','a'),
173
+ /*1.1*/ HB_SCRIPT_KANNADA = HB_TAG ('K','n','d','a'),
174
+ /*1.1*/ HB_SCRIPT_KATAKANA = HB_TAG ('K','a','n','a'),
175
+ /*1.1*/ HB_SCRIPT_LAO = HB_TAG ('L','a','o','o'),
176
+ /*1.1*/ HB_SCRIPT_LATIN = HB_TAG ('L','a','t','n'),
177
+ /*1.1*/ HB_SCRIPT_MALAYALAM = HB_TAG ('M','l','y','m'),
178
+ /*1.1*/ HB_SCRIPT_ORIYA = HB_TAG ('O','r','y','a'),
179
+ /*1.1*/ HB_SCRIPT_TAMIL = HB_TAG ('T','a','m','l'),
180
+ /*1.1*/ HB_SCRIPT_TELUGU = HB_TAG ('T','e','l','u'),
181
+ /*1.1*/ HB_SCRIPT_THAI = HB_TAG ('T','h','a','i'),
182
+
183
+ /*2.0*/ HB_SCRIPT_TIBETAN = HB_TAG ('T','i','b','t'),
184
+
185
+ /*3.0*/ HB_SCRIPT_BOPOMOFO = HB_TAG ('B','o','p','o'),
186
+ /*3.0*/ HB_SCRIPT_BRAILLE = HB_TAG ('B','r','a','i'),
187
+ /*3.0*/ HB_SCRIPT_CANADIAN_SYLLABICS = HB_TAG ('C','a','n','s'),
188
+ /*3.0*/ HB_SCRIPT_CHEROKEE = HB_TAG ('C','h','e','r'),
189
+ /*3.0*/ HB_SCRIPT_ETHIOPIC = HB_TAG ('E','t','h','i'),
190
+ /*3.0*/ HB_SCRIPT_KHMER = HB_TAG ('K','h','m','r'),
191
+ /*3.0*/ HB_SCRIPT_MONGOLIAN = HB_TAG ('M','o','n','g'),
192
+ /*3.0*/ HB_SCRIPT_MYANMAR = HB_TAG ('M','y','m','r'),
193
+ /*3.0*/ HB_SCRIPT_OGHAM = HB_TAG ('O','g','a','m'),
194
+ /*3.0*/ HB_SCRIPT_RUNIC = HB_TAG ('R','u','n','r'),
195
+ /*3.0*/ HB_SCRIPT_SINHALA = HB_TAG ('S','i','n','h'),
196
+ /*3.0*/ HB_SCRIPT_SYRIAC = HB_TAG ('S','y','r','c'),
197
+ /*3.0*/ HB_SCRIPT_THAANA = HB_TAG ('T','h','a','a'),
198
+ /*3.0*/ HB_SCRIPT_YI = HB_TAG ('Y','i','i','i'),
199
+
200
+ /*3.1*/ HB_SCRIPT_DESERET = HB_TAG ('D','s','r','t'),
201
+ /*3.1*/ HB_SCRIPT_GOTHIC = HB_TAG ('G','o','t','h'),
202
+ /*3.1*/ HB_SCRIPT_OLD_ITALIC = HB_TAG ('I','t','a','l'),
203
+
204
+ /*3.2*/ HB_SCRIPT_BUHID = HB_TAG ('B','u','h','d'),
205
+ /*3.2*/ HB_SCRIPT_HANUNOO = HB_TAG ('H','a','n','o'),
206
+ /*3.2*/ HB_SCRIPT_TAGALOG = HB_TAG ('T','g','l','g'),
207
+ /*3.2*/ HB_SCRIPT_TAGBANWA = HB_TAG ('T','a','g','b'),
208
+
209
+ /*4.0*/ HB_SCRIPT_CYPRIOT = HB_TAG ('C','p','r','t'),
210
+ /*4.0*/ HB_SCRIPT_LIMBU = HB_TAG ('L','i','m','b'),
211
+ /*4.0*/ HB_SCRIPT_LINEAR_B = HB_TAG ('L','i','n','b'),
212
+ /*4.0*/ HB_SCRIPT_OSMANYA = HB_TAG ('O','s','m','a'),
213
+ /*4.0*/ HB_SCRIPT_SHAVIAN = HB_TAG ('S','h','a','w'),
214
+ /*4.0*/ HB_SCRIPT_TAI_LE = HB_TAG ('T','a','l','e'),
215
+ /*4.0*/ HB_SCRIPT_UGARITIC = HB_TAG ('U','g','a','r'),
216
+
217
+ /*4.1*/ HB_SCRIPT_BUGINESE = HB_TAG ('B','u','g','i'),
218
+ /*4.1*/ HB_SCRIPT_COPTIC = HB_TAG ('C','o','p','t'),
219
+ /*4.1*/ HB_SCRIPT_GLAGOLITIC = HB_TAG ('G','l','a','g'),
220
+ /*4.1*/ HB_SCRIPT_KHAROSHTHI = HB_TAG ('K','h','a','r'),
221
+ /*4.1*/ HB_SCRIPT_NEW_TAI_LUE = HB_TAG ('T','a','l','u'),
222
+ /*4.1*/ HB_SCRIPT_OLD_PERSIAN = HB_TAG ('X','p','e','o'),
223
+ /*4.1*/ HB_SCRIPT_SYLOTI_NAGRI = HB_TAG ('S','y','l','o'),
224
+ /*4.1*/ HB_SCRIPT_TIFINAGH = HB_TAG ('T','f','n','g'),
225
+
226
+ /*5.0*/ HB_SCRIPT_BALINESE = HB_TAG ('B','a','l','i'),
227
+ /*5.0*/ HB_SCRIPT_CUNEIFORM = HB_TAG ('X','s','u','x'),
228
+ /*5.0*/ HB_SCRIPT_NKO = HB_TAG ('N','k','o','o'),
229
+ /*5.0*/ HB_SCRIPT_PHAGS_PA = HB_TAG ('P','h','a','g'),
230
+ /*5.0*/ HB_SCRIPT_PHOENICIAN = HB_TAG ('P','h','n','x'),
231
+
232
+ /*5.1*/ HB_SCRIPT_CARIAN = HB_TAG ('C','a','r','i'),
233
+ /*5.1*/ HB_SCRIPT_CHAM = HB_TAG ('C','h','a','m'),
234
+ /*5.1*/ HB_SCRIPT_KAYAH_LI = HB_TAG ('K','a','l','i'),
235
+ /*5.1*/ HB_SCRIPT_LEPCHA = HB_TAG ('L','e','p','c'),
236
+ /*5.1*/ HB_SCRIPT_LYCIAN = HB_TAG ('L','y','c','i'),
237
+ /*5.1*/ HB_SCRIPT_LYDIAN = HB_TAG ('L','y','d','i'),
238
+ /*5.1*/ HB_SCRIPT_OL_CHIKI = HB_TAG ('O','l','c','k'),
239
+ /*5.1*/ HB_SCRIPT_REJANG = HB_TAG ('R','j','n','g'),
240
+ /*5.1*/ HB_SCRIPT_SAURASHTRA = HB_TAG ('S','a','u','r'),
241
+ /*5.1*/ HB_SCRIPT_SUNDANESE = HB_TAG ('S','u','n','d'),
242
+ /*5.1*/ HB_SCRIPT_VAI = HB_TAG ('V','a','i','i'),
243
+
244
+ /*5.2*/ HB_SCRIPT_AVESTAN = HB_TAG ('A','v','s','t'),
245
+ /*5.2*/ HB_SCRIPT_BAMUM = HB_TAG ('B','a','m','u'),
246
+ /*5.2*/ HB_SCRIPT_EGYPTIAN_HIEROGLYPHS = HB_TAG ('E','g','y','p'),
247
+ /*5.2*/ HB_SCRIPT_IMPERIAL_ARAMAIC = HB_TAG ('A','r','m','i'),
248
+ /*5.2*/ HB_SCRIPT_INSCRIPTIONAL_PAHLAVI = HB_TAG ('P','h','l','i'),
249
+ /*5.2*/ HB_SCRIPT_INSCRIPTIONAL_PARTHIAN = HB_TAG ('P','r','t','i'),
250
+ /*5.2*/ HB_SCRIPT_JAVANESE = HB_TAG ('J','a','v','a'),
251
+ /*5.2*/ HB_SCRIPT_KAITHI = HB_TAG ('K','t','h','i'),
252
+ /*5.2*/ HB_SCRIPT_LISU = HB_TAG ('L','i','s','u'),
253
+ /*5.2*/ HB_SCRIPT_MEETEI_MAYEK = HB_TAG ('M','t','e','i'),
254
+ /*5.2*/ HB_SCRIPT_OLD_SOUTH_ARABIAN = HB_TAG ('S','a','r','b'),
255
+ /*5.2*/ HB_SCRIPT_OLD_TURKIC = HB_TAG ('O','r','k','h'),
256
+ /*5.2*/ HB_SCRIPT_SAMARITAN = HB_TAG ('S','a','m','r'),
257
+ /*5.2*/ HB_SCRIPT_TAI_THAM = HB_TAG ('L','a','n','a'),
258
+ /*5.2*/ HB_SCRIPT_TAI_VIET = HB_TAG ('T','a','v','t'),
259
+
260
+ /*6.0*/ HB_SCRIPT_BATAK = HB_TAG ('B','a','t','k'),
261
+ /*6.0*/ HB_SCRIPT_BRAHMI = HB_TAG ('B','r','a','h'),
262
+ /*6.0*/ HB_SCRIPT_MANDAIC = HB_TAG ('M','a','n','d'),
263
+
264
+ /*6.1*/ HB_SCRIPT_CHAKMA = HB_TAG ('C','a','k','m'),
265
+ /*6.1*/ HB_SCRIPT_MEROITIC_CURSIVE = HB_TAG ('M','e','r','c'),
266
+ /*6.1*/ HB_SCRIPT_MEROITIC_HIEROGLYPHS = HB_TAG ('M','e','r','o'),
267
+ /*6.1*/ HB_SCRIPT_MIAO = HB_TAG ('P','l','r','d'),
268
+ /*6.1*/ HB_SCRIPT_SHARADA = HB_TAG ('S','h','r','d'),
269
+ /*6.1*/ HB_SCRIPT_SORA_SOMPENG = HB_TAG ('S','o','r','a'),
270
+ /*6.1*/ HB_SCRIPT_TAKRI = HB_TAG ('T','a','k','r'),
271
+
272
+ /* No script set. */
273
+ /*---*/ HB_SCRIPT_INVALID = HB_TAG_NONE
285
274
  } hb_script_t;
286
275
 
276
+ /* These are moved out of hb_script_t because glib-mkenums chokes otherwise. */
277
+ #if 0
278
+ /*7.0*/ HB_SCRIPT_BASSA_VAH = HB_TAG ('B','a','s','s'),
279
+ /*7.0*/ HB_SCRIPT_CAUCASIAN_ALBANIAN = HB_TAG ('A','g','h','b'),
280
+ /*7.0*/ HB_SCRIPT_DUPLOYAN = HB_TAG ('D','u','p','l'),
281
+ /*7.0*/ HB_SCRIPT_ELBASAN = HB_TAG ('E','l','b','a'),
282
+ /*7.0*/ HB_SCRIPT_GRANTHA = HB_TAG ('G','r','a','n'),
283
+ /*7.0*/ HB_SCRIPT_KHOJKI = HB_TAG ('K','h','o','j'),
284
+ /*7.0*/ HB_SCRIPT_KHUDAWADI = HB_TAG ('S','i','n','d'),
285
+ /*7.0*/ HB_SCRIPT_LINEAR_A = HB_TAG ('L','i','n','a'),
286
+ /*7.0*/ HB_SCRIPT_MAHAJANI = HB_TAG ('M','a','h','j'),
287
+ /*7.0*/ HB_SCRIPT_MANICHAEAN = HB_TAG ('M','a','n','i'),
288
+ /*7.0*/ HB_SCRIPT_MENDE_KIKAKUI = HB_TAG ('M','e','n','d'),
289
+ /*7.0*/ HB_SCRIPT_MODI = ???
290
+ /*7.0*/ HB_SCRIPT_MRO = HB_TAG ('M','r','o','o'),
291
+ /*7.0*/ HB_SCRIPT_NABATAEAN = HB_TAG ('N','b','a','t'),
292
+ /*7.0*/ HB_SCRIPT_OLD_NORTH_ARABIAN = HB_TAG ('N','a','r','b'),
293
+ /*7.0*/ HB_SCRIPT_OLD_PERMIC = HB_TAG ('P','e','r','m'),
294
+ /*7.0*/ HB_SCRIPT_PAHAWH_HMONG = HB_TAG ('H','m','n','g'),
295
+ /*7.0*/ HB_SCRIPT_PALMYRENE = HB_TAG ('P','a','l','m'),
296
+ /*7.0*/ HB_SCRIPT_PAU_CIN_HAU = ???
297
+ /*7.0*/ HB_SCRIPT_PSALTER_PAHLAVI = HB_TAG ('P','h','l','p'),
298
+ /*7.0*/ HB_SCRIPT_SIDDHAM = ???
299
+ /*7.0*/ HB_SCRIPT_TIRHUTA = HB_TAG ('T','i','r','h'),
300
+ /*7.0*/ HB_SCRIPT_WARANG_CITI = HB_TAG ('W','a','r','a'),
301
+ #endif
302
+
287
303
 
288
304
  /* Script functions */
289
305