pango 3.0.8-x86-mingw32 → 3.0.9-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -3
  3. data/ext/pango/rbpangoattribute.c +7 -0
  4. data/ext/pango/rbpangoattrlist.c +2 -2
  5. data/ext/pango/rbpangocontext.c +49 -14
  6. data/ext/pango/rbpangoglyphinfo.c +5 -5
  7. data/lib/2.2/pango.so +0 -0
  8. data/lib/2.3/pango.so +0 -0
  9. data/test/test-context.rb +113 -0
  10. data/vendor/local/bin/derb.exe +0 -0
  11. data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
  12. data/vendor/local/bin/hb-shape.exe +0 -0
  13. data/vendor/local/bin/hb-view.exe +0 -0
  14. data/vendor/local/bin/libharfbuzz-0.dll +0 -0
  15. data/vendor/local/bin/libpango-1.0-0.dll +0 -0
  16. data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
  17. data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
  18. data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
  19. data/vendor/local/bin/pango-view.exe +0 -0
  20. data/vendor/local/include/harfbuzz/hb-common.h +16 -6
  21. data/vendor/local/include/harfbuzz/hb-unicode.h +0 -15
  22. data/vendor/local/include/harfbuzz/hb-version.h +3 -3
  23. data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
  24. data/vendor/local/lib/icudt.dll +0 -0
  25. data/vendor/local/lib/icudt57.dll +0 -0
  26. data/vendor/local/lib/libharfbuzz-icu.a +0 -0
  27. data/vendor/local/lib/libharfbuzz-icu.la +3 -3
  28. data/vendor/local/lib/libharfbuzz.dll.a +0 -0
  29. data/vendor/local/lib/libharfbuzz.la +3 -3
  30. data/vendor/local/lib/libicudt.dll.a +0 -0
  31. data/vendor/local/lib/libicuin.dll.a +0 -0
  32. data/vendor/local/lib/libicuio.dll.a +0 -0
  33. data/vendor/local/lib/libicule.dll.a +0 -0
  34. data/vendor/local/lib/libiculx.dll.a +0 -0
  35. data/vendor/local/lib/libicutest.dll.a +0 -0
  36. data/vendor/local/lib/libicutu.dll.a +0 -0
  37. data/vendor/local/lib/libicuuc.dll.a +0 -0
  38. data/vendor/local/lib/libpango-1.0.dll.a +0 -0
  39. data/vendor/local/lib/libpango-1.0.la +1 -1
  40. data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
  41. data/vendor/local/lib/libpangocairo-1.0.la +1 -1
  42. data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
  43. data/vendor/local/lib/libpangoft2-1.0.la +1 -1
  44. data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
  45. data/vendor/local/lib/libpangowin32-1.0.la +1 -1
  46. data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
  47. data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
  48. data/vendor/local/lib/pkgconfig/pango.pc +1 -1
  49. data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
  50. data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
  51. data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
  52. data/vendor/local/share/gtk-doc/html/harfbuzz/adding-text-to-the-buffer.html +5 -4
  53. data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +7 -4
  54. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-10.html +5 -4
  55. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-11.html +5 -4
  56. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-2.html +32 -4
  57. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-20.html +5 -4
  58. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-22.html +5 -4
  59. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-28.html +5 -4
  60. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-30.html +5 -4
  61. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-31.html +5 -4
  62. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-38.html +5 -4
  63. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-39.html +5 -4
  64. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-41.html +5 -4
  65. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-42.html +5 -4
  66. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-5.html +5 -4
  67. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-7.html +5 -4
  68. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-8.html +5 -4
  69. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-0-5.html +5 -4
  70. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-1-2.html +5 -4
  71. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-1-3.html +5 -4
  72. data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +7 -6
  73. data/vendor/local/share/gtk-doc/html/harfbuzz/buffers-language-script-and-direction.html +5 -4
  74. data/vendor/local/share/gtk-doc/html/harfbuzz/building.html +5 -4
  75. data/vendor/local/share/gtk-doc/html/harfbuzz/ch07.html +5 -4
  76. data/vendor/local/share/gtk-doc/html/harfbuzz/customizing-unicode-functions.html +5 -4
  77. data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +5 -4
  78. data/vendor/local/share/gtk-doc/html/harfbuzz/fonts-and-faces.html +5 -4
  79. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Buffers.html +27 -26
  80. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +17 -21
  81. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +10 -9
  82. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +43 -12
  83. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +7 -6
  84. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +7 -6
  85. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +8 -7
  86. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +8 -7
  87. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +7 -6
  88. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +11 -10
  89. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +61 -54
  90. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +7 -6
  91. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +7 -6
  92. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-font.html +7 -6
  93. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +8 -7
  94. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-shape.html +7 -6
  95. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +7 -6
  96. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +7 -6
  97. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +8 -7
  98. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +8 -7
  99. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +9 -8
  100. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +7 -6
  101. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +9 -8
  102. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +7 -6
  103. data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +7 -261
  104. data/vendor/local/share/gtk-doc/html/harfbuzz/hello-harfbuzz.html +5 -4
  105. data/vendor/local/share/gtk-doc/html/harfbuzz/home.png +0 -0
  106. data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +3 -2
  107. data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +601 -0
  108. data/vendor/local/share/gtk-doc/html/harfbuzz/install-harfbuzz.html +5 -4
  109. data/vendor/local/share/gtk-doc/html/harfbuzz/left-insensitive.png +0 -0
  110. data/vendor/local/share/gtk-doc/html/harfbuzz/left.png +0 -0
  111. data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +8 -7
  112. data/vendor/local/share/gtk-doc/html/harfbuzz/plans-and-caching.html +5 -4
  113. data/vendor/local/share/gtk-doc/html/harfbuzz/pt01.html +5 -4
  114. data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +6 -5
  115. data/vendor/local/share/gtk-doc/html/harfbuzz/right-insensitive.png +0 -0
  116. data/vendor/local/share/gtk-doc/html/harfbuzz/right.png +0 -0
  117. data/vendor/local/share/gtk-doc/html/harfbuzz/setting-buffer-properties.html +5 -4
  118. data/vendor/local/share/gtk-doc/html/harfbuzz/shaping-and-shape-plans.html +5 -4
  119. data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +142 -160
  120. data/vendor/local/share/gtk-doc/html/harfbuzz/up-insensitive.png +0 -0
  121. data/vendor/local/share/gtk-doc/html/harfbuzz/up.png +0 -0
  122. data/vendor/local/share/gtk-doc/html/harfbuzz/using-harfbuzzs-native-opentype-implementation.html +5 -4
  123. data/vendor/local/share/gtk-doc/html/harfbuzz/using-your-own-font-functions.html +5 -4
  124. data/vendor/local/share/gtk-doc/html/harfbuzz/what-about-the-other-scripts.html +5 -4
  125. data/vendor/local/share/gtk-doc/html/harfbuzz/what-is-harfbuzz.html +5 -4
  126. data/vendor/local/share/gtk-doc/html/harfbuzz/why-is-it-called-harfbuzz.html +5 -4
  127. data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +10 -10
  128. data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +8 -8
  129. data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +9 -9
  130. data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +27 -27
  131. data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +57 -57
  132. data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +2 -2
  133. data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +53 -53
  134. data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +2 -2
  135. data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +2 -2
  136. data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +2 -2
  137. data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +2 -2
  138. data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +2 -2
  139. data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +2 -2
  140. data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +2 -2
  141. data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +2 -2
  142. data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +2 -2
  143. data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +2 -2
  144. data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +2 -2
  145. data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +2 -2
  146. data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +2 -2
  147. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +2 -2
  148. data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +2 -2
  149. data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +2 -2
  150. data/vendor/local/share/gtk-doc/html/pango/api-index-1-38.html +2 -2
  151. data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +2 -2
  152. data/vendor/local/share/gtk-doc/html/pango/api-index-1-40.html +2 -2
  153. data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +2 -2
  154. data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +2 -2
  155. data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +2 -2
  156. data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +2 -2
  157. data/vendor/local/share/gtk-doc/html/pango/index.html +3 -3
  158. data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +2 -2
  159. data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +24 -24
  160. data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +107 -107
  161. data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +5 -5
  162. data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +31 -31
  163. data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +15 -15
  164. data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +380 -390
  165. data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +37 -37
  166. data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +219 -219
  167. data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +295 -295
  168. data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +108 -108
  169. data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +15 -15
  170. data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +142 -142
  171. data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +85 -85
  172. data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +63 -63
  173. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +340 -340
  174. data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +163 -163
  175. data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +11 -11
  176. data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +24 -24
  177. data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +54 -54
  178. data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +57 -57
  179. data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +7 -7
  180. data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +200 -41
  181. data/vendor/local/share/gtk-doc/html/pango/pango.html +2 -2
  182. data/vendor/local/share/gtk-doc/html/pango/rendering.html +2 -2
  183. data/vendor/local/share/man/man1/pango-view.1 +1 -1
  184. metadata +7 -6
  185. data/vendor/local/share/gtk-doc/html/pango/index.sgml +0 -1204
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68308bfd5ed6bcfbb2dec307282b1f5b2149d3f8
4
- data.tar.gz: e88bcd12a6fb3407d8031b977306f93ec111efac
3
+ metadata.gz: fb35b8e372eb4cf84994c87c030683dc2501164a
4
+ data.tar.gz: 19638380aef0872cb399d6d8df67ddaa2397d9c4
5
5
  SHA512:
6
- metadata.gz: e4266be536f156fd9d7624c9679b39409ce696ffd26f230b5465098467d35162c11679c3da92cae0d3984bb7967b5f202f8852b144f53b4649a81969e14975eb
7
- data.tar.gz: ab3efd1899baa20e4345e7ecea0c46f5f85f6c500e30655656561c7882aeeff79d49da4d0e6b911d2b9655be601faafc46a8bad02963eb55ba3996a00c44f88e
6
+ metadata.gz: 7daefe46a7bc72f8c900310b5e0b3388fa91bc271771544e34a413f007f6d5ad3bdf751cefb905f80036e6c03c94bf0db83f1f0755245f09dbefae6628238e60
7
+ data.tar.gz: 413fb4726be292e4614c8455006a94241443801272d6a2e7f7ceedf2fc8139af737450c5f5a70e47a3d16dcab19a00a2a880880cf679addf5f6e1f069bd1e7ab
data/Rakefile CHANGED
@@ -48,9 +48,9 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
48
48
  },
49
49
  {
50
50
  :name => "harfbuzz",
51
- :download_base_url => "https://www.freedesktop.org/software/harfbuzz/release",
51
+ :download_site => :freedesktop,
52
52
  :label => "HarfBuzz",
53
- :version => "1.2.4",
53
+ :version => "1.3.0",
54
54
  :compression_method => "bz2",
55
55
  :windows => {
56
56
  :configure_args => [
@@ -64,7 +64,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
64
64
  :name => "pango",
65
65
  :download_site => :gnome,
66
66
  :label => "pango",
67
- :version => "1.40.0",
67
+ :version => "1.40.1",
68
68
  :compression_method => "xz",
69
69
  :windows => {
70
70
  :configure_args => [
@@ -229,6 +229,12 @@ attr_shape_value(VALUE self)
229
229
  return rb_ary_new3(2, attr_shape_ink_rect(self), attr_shape_logical_rect(self));
230
230
  }
231
231
 
232
+ static VALUE
233
+ attr_shape_data(VALUE self)
234
+ {
235
+ return (VALUE)(((PangoAttrShape *)RVAL2ATTR(self))->data);
236
+ }
237
+
232
238
  /*
233
239
  * Initialize methods
234
240
  */
@@ -464,6 +470,7 @@ Init_pango_attribute(VALUE mPango)
464
470
  rbg_define_method(tmpklass, "ink_rect", attr_shape_ink_rect, 0);
465
471
  rbg_define_method(tmpklass, "logical_rect", attr_shape_logical_rect, 0);
466
472
  rbg_define_method(tmpklass, "value", attr_shape_value, 0);
473
+ rbg_define_method(tmpklass, "data", attr_shape_data, 0);
467
474
  MAKE_ATTR(PANGO_ATTR_SCALE, AttrScale, pattrfloat, 1);
468
475
  /* PangoScale */
469
476
  rb_define_const(tmpklass, "XX_SMALL", rb_float_new(PANGO_SCALE_XX_SMALL));
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2016 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002-2005 Masao Mutoh
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -64,7 +64,7 @@ rg_splice(VALUE self, VALUE other, VALUE pos, VALUE len)
64
64
  static gboolean
65
65
  filter_func(PangoAttribute *attr, gpointer data)
66
66
  {
67
- return CBOOL2RVAL(rb_funcall((VALUE)data, id_call, 1, ATTR2RVAL(attr)));
67
+ return RVAL2CBOOL(rb_funcall((VALUE)data, id_call, 1, ATTR2RVAL(attr)));
68
68
  }
69
69
 
70
70
  static VALUE
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2016 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002-2005 Masao Mutoh
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -21,6 +21,8 @@
21
21
 
22
22
  #include "rbpangoprivate.h"
23
23
 
24
+ static ID id_call;
25
+
24
26
  #define RG_TARGET_NAMESPACE cContext
25
27
  #define _SELF(self) (RVAL2PANGOCONTEXT(self))
26
28
 
@@ -33,26 +35,26 @@ rg_itemize(int argc, VALUE *argv, VALUE self)
33
35
  rb_scan_args(argc, argv, "42", &arg1, &arg2, &arg3, &arg4, &arg5, &arg6);
34
36
 
35
37
  if (TYPE(arg1) == T_STRING) {
36
- list = pango_itemize(_SELF(self),
37
- RVAL2CSTR(arg1), /* text */
38
- NUM2INT(arg2), /* start_index */
38
+ list = pango_itemize(_SELF(self),
39
+ RVAL2CSTR(arg1), /* text */
40
+ NUM2INT(arg2), /* start_index */
39
41
  NUM2INT(arg3), /* length */
40
42
  RVAL2PANGOATTRLIST(arg4), /* attrs */
41
43
  NIL_P(arg5) ? NULL : RVAL2PANGOATTRITERATOR(arg5)); /* cached_iter */
42
44
  } else {
43
45
  #ifdef HAVE_PANGO_ITEMIZE_WITH_BASE_DIR
44
- list = pango_itemize_with_base_dir(_SELF(self),
46
+ list = pango_itemize_with_base_dir(_SELF(self),
45
47
  RVAL2PANGODIRECTION(arg1), /* base_dir */
46
- RVAL2CSTR(arg2), /* text */
47
- NUM2INT(arg3), /* start_index */
48
+ RVAL2CSTR(arg2), /* text */
49
+ NUM2INT(arg3), /* start_index */
48
50
  NUM2INT(arg4), /* length */
49
51
  RVAL2PANGOATTRLIST(arg5), /* attrs */
50
52
  NIL_P(arg6) ? NULL : RVAL2PANGOATTRITERATOR(arg6)); /* cached_iter */
51
53
  #else
52
54
  rb_warn("Pango::Context#itemize(base_dir, text, start_index, length, attrs, cached_iter) isn't supported on this environment.");
53
- list = pango_itemize(_SELF(self),
54
- RVAL2CSTR(arg1), /* text */
55
- NUM2INT(arg2), /* start_index */
55
+ list = pango_itemize(_SELF(self),
56
+ RVAL2CSTR(arg1), /* text */
57
+ NUM2INT(arg2), /* start_index */
56
58
  NUM2INT(arg3), /* length */
57
59
  RVAL2PANGOATTRLIST(arg4), /* attrs */
58
60
  NIL_P(arg5) ? NULL : RVAL2PANGOATTRITERATOR(arg5)); /* cached_iter */
@@ -111,7 +113,7 @@ rg_language(VALUE self)
111
113
  static VALUE
112
114
  rg_set_language(VALUE self, VALUE lang)
113
115
  {
114
- pango_context_set_language(_SELF(self),
116
+ pango_context_set_language(_SELF(self),
115
117
  RVAL2PANGOLANGUAGE(lang));
116
118
  return self;
117
119
  }
@@ -167,7 +169,7 @@ rg_matrix(VALUE self)
167
169
  static VALUE
168
170
  rg_set_matrix(VALUE self, VALUE matrix)
169
171
  {
170
- pango_context_set_matrix(_SELF(self),
172
+ pango_context_set_matrix(_SELF(self),
171
173
  RVAL2PANGOMATRIX(matrix));
172
174
  return self;
173
175
  }
@@ -192,8 +194,8 @@ rg_get_metrics(int argc, VALUE *argv, VALUE self)
192
194
 
193
195
  rb_scan_args(argc, argv, "11", &desc, &lang);
194
196
 
195
- return PANGOFONTMETRICS2RVAL(pango_context_get_metrics(_SELF(self),
196
- RVAL2PANGOFONTDESCRIPTION(desc),
197
+ return PANGOFONTMETRICS2RVAL(pango_context_get_metrics(_SELF(self),
198
+ RVAL2PANGOFONTDESCRIPTION(desc),
197
199
  NIL_P(lang) ? NULL : RVAL2PANGOLANGUAGE(lang)));
198
200
  }
199
201
 
@@ -253,6 +255,36 @@ rg_resolution(VALUE self)
253
255
  {
254
256
  return rb_float_new(pango_cairo_context_get_resolution(_SELF(self)));
255
257
  }
258
+
259
+ static void
260
+ shape_renderer_callback(cairo_t *cr,
261
+ PangoAttrShape *attr,
262
+ gboolean do_path,
263
+ gpointer data)
264
+ {
265
+ VALUE rb_cr;
266
+ VALUE rb_attr;
267
+ VALUE rb_do_path;
268
+ VALUE rb_callback;
269
+
270
+ rb_cr = CRCONTEXT2RVAL(cr);
271
+ rb_attr = ATTR2RVAL((PangoAttribute *)attr);
272
+ rb_do_path = CBOOL2RVAL(do_path);
273
+ rb_callback = (VALUE)data;
274
+ rb_funcall(rb_callback, id_call, 3, rb_cr, rb_attr, rb_do_path);
275
+ }
276
+
277
+ static VALUE
278
+ rg_set_shape_renderer(VALUE self)
279
+ {
280
+ VALUE func = rb_block_proc();
281
+ rb_iv_set(self, "@shape_renderer", func);
282
+ pango_cairo_context_set_shape_renderer(_SELF(self),
283
+ shape_renderer_callback,
284
+ (gpointer)func,
285
+ NULL);
286
+ return self;
287
+ }
256
288
  #endif
257
289
 
258
290
  static VALUE
@@ -267,6 +299,8 @@ Init_pango_context(VALUE mPango)
267
299
  {
268
300
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(PANGO_TYPE_CONTEXT, "Context", mPango);
269
301
 
302
+ id_call = rb_intern("call");
303
+
270
304
  RG_DEF_METHOD(itemize, -1);
271
305
 
272
306
  #ifdef PANGO_ENABLE_BACKEND
@@ -298,6 +332,7 @@ Init_pango_context(VALUE mPango)
298
332
  RG_DEF_METHOD(font_options, 0);
299
333
  RG_DEF_METHOD(set_resolution, 1);
300
334
  RG_DEF_METHOD(resolution, 0);
335
+ RG_DEF_METHOD(set_shape_renderer, 0);
301
336
  #endif
302
337
 
303
338
  /* This will remove 2 or 3 releases later since 0.14.0. */
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2016 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2005 Masao Mutoh
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -83,11 +83,11 @@ rg_geometry(VALUE self)
83
83
  static VALUE
84
84
  rg_set_geometry(VALUE self, VALUE width, VALUE x_offset, VALUE y_offset)
85
85
  {
86
- PangoGlyphGeometry geo = _SELF(self)->geometry;
86
+ PangoGlyphGeometry *geo = &(_SELF(self)->geometry);
87
87
 
88
- geo.width = NUM2INT(width);
89
- geo.x_offset = NUM2INT(x_offset);
90
- geo.y_offset = NUM2INT(y_offset);
88
+ geo->width = NUM2INT(width);
89
+ geo->x_offset = NUM2INT(x_offset);
90
+ geo->y_offset = NUM2INT(y_offset);
91
91
 
92
92
  return self;
93
93
  }
data/lib/2.2/pango.so CHANGED
Binary file
data/lib/2.3/pango.so CHANGED
Binary file
@@ -0,0 +1,113 @@
1
+ # Copyright (C) 2016 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ class TestContext < Test::Unit::TestCase
18
+ include PangoTestUtils
19
+
20
+ def setup
21
+ font_map = Pango::CairoFontMap.default
22
+ @context = font_map.create_context
23
+ end
24
+
25
+ def test_set_font_map
26
+ font_map = Pango::CairoFontMap.default
27
+ @context.font_map = font_map
28
+ assert_equal(font_map, @context.font_map)
29
+ end
30
+
31
+ def test_set_font_description
32
+ description = Pango::FontDescription.new("monospace")
33
+ description.size = 10 * Pango::SCALE
34
+ @context.font_description = description
35
+ assert_equal("monospace 10", @context.font_description.to_s)
36
+ end
37
+
38
+ def test_set_language
39
+ @context.language = Pango::Language.new("fr")
40
+ assert_equal("fr", @context.language.to_s)
41
+ end
42
+
43
+ def test_set_base_dir
44
+ @context.base_dir = Pango::Context::DIRECTION_LTR
45
+ assert_equal(Pango::Context::DIRECTION_LTR, @context.base_dir)
46
+ end
47
+
48
+ def test_set_gravity
49
+ @context.gravity_hint = Pango::Gravity::HINT_STRONG
50
+ assert_equal(Pango::Gravity::HINT_STRONG, @context.gravity_hint)
51
+ end
52
+
53
+ def test_set_matrix
54
+ matrix = Pango::Matrix.new(0.1, 0.2, 0.3, 0.4, 0.5, 0.6)
55
+ @context.matrix = matrix
56
+ assert_equal(0.1, @context.matrix.xx)
57
+ assert_equal(0.2, @context.matrix.xy)
58
+ assert_equal(0.3, @context.matrix.yx)
59
+ assert_equal(0.4, @context.matrix.yy)
60
+ assert_equal(0.5, @context.matrix.x0)
61
+ assert_equal(0.6, @context.matrix.y0)
62
+ end
63
+
64
+ def test_load_font
65
+ description = Pango::FontDescription.new("monospace")
66
+ description.size = 10 * Pango::SCALE
67
+ font = @context.load_font(description)
68
+ assert_equal(10,
69
+ (font.describe.size.to_f / Pango::SCALE).round)
70
+ end
71
+
72
+ def test_load_fontset
73
+ description = Pango::FontDescription.new("monospace")
74
+ description.size = 10 * Pango::SCALE
75
+ language = Pango::Language.new("fr")
76
+ fontset = @context.load_fontset(description, language)
77
+ a_unicode = GLib::UTF8.get_char("a")
78
+ font = fontset.get_font(a_unicode)
79
+ assert_equal(10,
80
+ (font.describe.size.to_f / Pango::SCALE).round)
81
+ end
82
+
83
+ def test_get_metrics
84
+ description = Pango::FontDescription.new("monospace")
85
+ description.size = 10 * Pango::SCALE
86
+ language = Pango::Language.new("fr")
87
+ metrics = @context.get_metrics(description, language)
88
+ assert do
89
+ metrics.ascent > metrics.descent
90
+ end
91
+ end
92
+
93
+ def test_families
94
+ family_names = @context.families.collect(&:name)
95
+ assert do
96
+ family_names.include?("Monospace")
97
+ end
98
+ end
99
+
100
+ def test_font_options
101
+ options = Cairo::FontOptions.new
102
+ options.antialias = Cairo::Antialias::BEST
103
+ @context.font_options = options
104
+ assert_equal(Cairo::Antialias::BEST,
105
+ @context.font_options.antialias)
106
+ end
107
+
108
+ def test_resolution
109
+ dpi = 72
110
+ @context.resolution = dpi
111
+ assert_equal(dpi, @context.resolution)
112
+ end
113
+ end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -304,12 +304,22 @@ typedef enum
304
304
  /*7.0*/ HB_SCRIPT_TIRHUTA = HB_TAG ('T','i','r','h'),
305
305
  /*7.0*/ HB_SCRIPT_WARANG_CITI = HB_TAG ('W','a','r','a'),
306
306
 
307
- /*8.0*/ HB_SCRIPT_AHOM = HB_TAG ('A','h','o','m'),
308
- /*8.0*/ HB_SCRIPT_ANATOLIAN_HIEROGLYPHS = HB_TAG ('H','l','u','w'),
309
- /*8.0*/ HB_SCRIPT_HATRAN = HB_TAG ('H','a','t','r'),
310
- /*8.0*/ HB_SCRIPT_MULTANI = HB_TAG ('M','u','l','t'),
311
- /*8.0*/ HB_SCRIPT_OLD_HUNGARIAN = HB_TAG ('H','u','n','g'),
312
- /*8.0*/ HB_SCRIPT_SIGNWRITING = HB_TAG ('S','g','n','w'),
307
+ /*8.0*/ HB_SCRIPT_AHOM = HB_TAG ('A','h','o','m'),
308
+ /*8.0*/ HB_SCRIPT_ANATOLIAN_HIEROGLYPHS = HB_TAG ('H','l','u','w'),
309
+ /*8.0*/ HB_SCRIPT_HATRAN = HB_TAG ('H','a','t','r'),
310
+ /*8.0*/ HB_SCRIPT_MULTANI = HB_TAG ('M','u','l','t'),
311
+ /*8.0*/ HB_SCRIPT_OLD_HUNGARIAN = HB_TAG ('H','u','n','g'),
312
+ /*8.0*/ HB_SCRIPT_SIGNWRITING = HB_TAG ('S','g','n','w'),
313
+
314
+ /*
315
+ * Since 1.3.0
316
+ */
317
+ /*9.0*/ HB_SCRIPT_ADLAM = HB_TAG ('A','d','l','m'),
318
+ /*9.0*/ HB_SCRIPT_BHAIKSUKI = HB_TAG ('B','h','k','s'),
319
+ /*9.0*/ HB_SCRIPT_MARCHEN = HB_TAG ('M','a','r','c'),
320
+ /*9.0*/ HB_SCRIPT_OSAGE = HB_TAG ('O','s','g','e'),
321
+ /*9.0*/ HB_SCRIPT_TANGUT = HB_TAG ('T','a','n','g'),
322
+ /*9.0*/ HB_SCRIPT_NEWA = HB_TAG ('N','e','w','a'),
313
323
 
314
324
  /* No script set. */
315
325
  HB_SCRIPT_INVALID = HB_TAG_NONE,
@@ -449,33 +449,18 @@ HB_EXTERN hb_script_t
449
449
  hb_unicode_script (hb_unicode_funcs_t *ufuncs,
450
450
  hb_codepoint_t unicode);
451
451
 
452
- /**
453
- * hb_unicode_compose:
454
- *
455
- * Since: 0.9.2
456
- **/
457
452
  HB_EXTERN hb_bool_t
458
453
  hb_unicode_compose (hb_unicode_funcs_t *ufuncs,
459
454
  hb_codepoint_t a,
460
455
  hb_codepoint_t b,
461
456
  hb_codepoint_t *ab);
462
457
 
463
- /**
464
- * hb_unicode_decompose:
465
- *
466
- * Since: 0.9.2
467
- **/
468
458
  HB_EXTERN hb_bool_t
469
459
  hb_unicode_decompose (hb_unicode_funcs_t *ufuncs,
470
460
  hb_codepoint_t ab,
471
461
  hb_codepoint_t *a,
472
462
  hb_codepoint_t *b);
473
463
 
474
- /**
475
- * hb_unicode_decompose_compatibility:
476
- *
477
- * Since: 0.9.2
478
- **/
479
464
  HB_EXTERN unsigned int
480
465
  hb_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs,
481
466
  hb_codepoint_t u,
@@ -37,10 +37,10 @@ HB_BEGIN_DECLS
37
37
 
38
38
 
39
39
  #define HB_VERSION_MAJOR 1
40
- #define HB_VERSION_MINOR 2
41
- #define HB_VERSION_MICRO 4
40
+ #define HB_VERSION_MINOR 3
41
+ #define HB_VERSION_MICRO 0
42
42
 
43
- #define HB_VERSION_STRING "1.2.4"
43
+ #define HB_VERSION_STRING "1.3.0"
44
44
 
45
45
  #define HB_VERSION_ATLEAST(major,minor,micro) \
46
46
  ((major)*10000+(minor)*100+(micro) <= \
@@ -4,9 +4,9 @@
4
4
 
5
5
  #define PANGO_VERSION_MAJOR 1
6
6
  #define PANGO_VERSION_MINOR 40
7
- #define PANGO_VERSION_MICRO 0
7
+ #define PANGO_VERSION_MICRO 1
8
8
 
9
- #define PANGO_VERSION_STRING "1.40.0"
9
+ #define PANGO_VERSION_STRING "1.40.1"
10
10
 
11
11
 
12
12
  #endif
Binary file
Binary file
Binary file
@@ -23,9 +23,9 @@ dependency_libs=' -R/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/ho
23
23
  weak_library_names=''
24
24
 
25
25
  # Version information for libharfbuzz-icu.
26
- current=10200
27
- age=10200
28
- revision=4
26
+ current=10300
27
+ age=10300
28
+ revision=0
29
29
 
30
30
  # Is this an already installed library?
31
31
  installed=yes
Binary file
@@ -23,9 +23,9 @@ dependency_libs=' -R/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/ho
23
23
  weak_library_names=''
24
24
 
25
25
  # Version information for libharfbuzz.
26
- current=10200
27
- age=10200
28
- revision=4
26
+ current=10300
27
+ age=10300
28
+ revision=0
29
29
 
30
30
  # Is this an already installed library?
31
31
  installed=yes
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -25,7 +25,7 @@ weak_library_names=''
25
25
  # Version information for libpango-1.0.
26
26
  current=4000
27
27
  age=4000
28
- revision=0
28
+ revision=1
29
29
 
30
30
  # Is this an already installed library?
31
31
  installed=yes
@@ -25,7 +25,7 @@ weak_library_names=''
25
25
  # Version information for libpangocairo-1.0.
26
26
  current=4000
27
27
  age=4000
28
- revision=0
28
+ revision=1
29
29
 
30
30
  # Is this an already installed library?
31
31
  installed=yes
Binary file
@@ -25,7 +25,7 @@ weak_library_names=''
25
25
  # Version information for libpangoft2-1.0.
26
26
  current=4000
27
27
  age=4000
28
- revision=0
28
+ revision=1
29
29
 
30
30
  # Is this an already installed library?
31
31
  installed=yes
@@ -25,7 +25,7 @@ weak_library_names=''
25
25
  # Version information for libpangowin32-1.0.
26
26
  current=4000
27
27
  age=4000
28
- revision=0
28
+ revision=1
29
29
 
30
30
  # Is this an already installed library?
31
31
  installed=yes
@@ -5,7 +5,7 @@ includedir=/home/vagrant/ruby-gnome2.win32/pango/vendor/local/include
5
5
 
6
6
  Name: harfbuzz
7
7
  Description: HarfBuzz text shaping library ICU integration
8
- Version: 1.2.4
8
+ Version: 1.3.0
9
9
 
10
10
  Requires: harfbuzz
11
11
  Requires.private: icu-uc
@@ -5,7 +5,7 @@ includedir=/home/vagrant/ruby-gnome2.win32/pango/vendor/local/include
5
5
 
6
6
  Name: harfbuzz
7
7
  Description: HarfBuzz text shaping library
8
- Version: 1.2.4
8
+ Version: 1.3.0
9
9
 
10
10
  Libs: -L${libdir} -lharfbuzz
11
11
  Libs.private:
@@ -5,7 +5,7 @@ includedir=${prefix}/include
5
5
 
6
6
  Name: Pango
7
7
  Description: Internationalized text handling
8
- Version: 1.40.0
8
+ Version: 1.40.1
9
9
  Requires: glib-2.0 gobject-2.0
10
10
  Libs: -L${libdir} -lpango-1.0
11
11
  Libs.private: -lm
@@ -5,7 +5,7 @@ includedir=${prefix}/include
5
5
 
6
6
  Name: Pango Cairo
7
7
  Description: Cairo rendering support for Pango
8
- Version: 1.40.0
8
+ Version: 1.40.1
9
9
  Requires: pango cairo
10
10
  Requires.private: pangoft2 pangowin32
11
11
  Libs: -L${libdir} -lpangocairo-1.0
@@ -5,7 +5,7 @@ includedir=${prefix}/include
5
5
 
6
6
  Name: Pango FT2 and Pango Fc
7
7
  Description: Freetype 2.0 and fontconfig font support for Pango
8
- Version: 1.40.0
8
+ Version: 1.40.1
9
9
  Requires: pango freetype2 fontconfig
10
10
  Requires.private: harfbuzz
11
11
  Libs: -L${libdir} -lpangoft2-1.0
@@ -5,7 +5,7 @@ includedir=${prefix}/include
5
5
 
6
6
  Name: Pango Win32
7
7
  Description: Win32 GDI font support for Pango
8
- Version: 1.40.0
8
+ Version: 1.40.1
9
9
  Requires: pango
10
10
  Libs: -L${libdir} -lpangowin32-1.0
11
11
  Libs.private: -lgdi32 -lusp10