pango 3.1.2-x64-mingw32 → 3.1.3-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/ext/pango/rb-pango-attribute.c +22 -4
  3. data/ext/pango/rb-pango.c +16 -5
  4. data/lib/2.2/pango.so +0 -0
  5. data/lib/2.3/pango.so +0 -0
  6. data/lib/2.4/pango.so +0 -0
  7. data/lib/pango/deprecated.rb +20 -0
  8. data/lib/pango/layout.rb +2 -2
  9. data/lib/pango/loader.rb +8 -0
  10. data/test/test-layout.rb +3 -3
  11. data/test/test-pango.rb +23 -0
  12. data/vendor/local/bin/derb.exe +0 -0
  13. data/vendor/local/bin/genbrk.exe +0 -0
  14. data/vendor/local/bin/genccode.exe +0 -0
  15. data/vendor/local/bin/gencfu.exe +0 -0
  16. data/vendor/local/bin/gencmn.exe +0 -0
  17. data/vendor/local/bin/gencnval.exe +0 -0
  18. data/vendor/local/bin/gendict.exe +0 -0
  19. data/vendor/local/bin/gennorm2.exe +0 -0
  20. data/vendor/local/bin/genrb.exe +0 -0
  21. data/vendor/local/bin/gensprep.exe +0 -0
  22. data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
  23. data/vendor/local/bin/hb-shape.exe +0 -0
  24. data/vendor/local/bin/hb-view.exe +0 -0
  25. data/vendor/local/bin/icuinfo.exe +0 -0
  26. data/vendor/local/bin/icupkg.exe +0 -0
  27. data/vendor/local/bin/libgraphene-1.0-0.dll +0 -0
  28. data/vendor/local/bin/libharfbuzz-0.dll +0 -0
  29. data/vendor/local/bin/libpango-1.0-0.dll +0 -0
  30. data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
  31. data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
  32. data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
  33. data/vendor/local/bin/makeconv.exe +0 -0
  34. data/vendor/local/bin/pango-view.exe +0 -0
  35. data/vendor/local/bin/pkgdata.exe +0 -0
  36. data/vendor/local/bin/uconv.exe +0 -0
  37. data/vendor/local/lib/icudt.dll +0 -0
  38. data/vendor/local/lib/icudt58.dll +0 -0
  39. data/vendor/local/lib/icuin.dll +0 -0
  40. data/vendor/local/lib/icuin58.dll +0 -0
  41. data/vendor/local/lib/icuio.dll +0 -0
  42. data/vendor/local/lib/icuio58.dll +0 -0
  43. data/vendor/local/lib/icutest.dll +0 -0
  44. data/vendor/local/lib/icutest58.dll +0 -0
  45. data/vendor/local/lib/icutu.dll +0 -0
  46. data/vendor/local/lib/icutu58.dll +0 -0
  47. data/vendor/local/lib/icuuc.dll +0 -0
  48. data/vendor/local/lib/icuuc58.dll +0 -0
  49. data/vendor/local/lib/libgraphene-1.0.dll.a +0 -0
  50. data/vendor/local/lib/libharfbuzz.dll.a +0 -0
  51. data/vendor/local/lib/libicudt.dll.a +0 -0
  52. data/vendor/local/lib/libicuin.dll.a +0 -0
  53. data/vendor/local/lib/libicuio.dll.a +0 -0
  54. data/vendor/local/lib/libicutest.dll.a +0 -0
  55. data/vendor/local/lib/libicutu.dll.a +0 -0
  56. data/vendor/local/lib/libicuuc.dll.a +0 -0
  57. data/vendor/local/lib/libpango-1.0.dll.a +0 -0
  58. data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
  59. data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
  60. data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
  61. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb5db56e26ef16e48fd9c9b2f5d4a782da3df071
4
- data.tar.gz: ab7be2f9317f27c818f90652f6481ee5b43360c6
3
+ metadata.gz: e1a04de6e0a9a38004e00bbca62e95e486e58feb
4
+ data.tar.gz: 56bdbd182fe76ea306f17bccd6a643492d77fc59
5
5
  SHA512:
6
- metadata.gz: ea1a9fb2b15358f8322087ddc0c0d5df60c97683d2b81db9e893917e1c71420ef356d1b9de188f85316986ace2c7b120246b351dcac31748ea890624a6a433ed
7
- data.tar.gz: d2ca057a9693dd7acf55947386c6a0f706316ec082a01c9b0432f4a61665060eaa4653d8940b0c5dbc14586d1dc0c273c4cd00dbd423caf6f113addd42acbf98
6
+ metadata.gz: f1bcbf45ead2e477ef740a9e18569d5ef0d28d2eebf1a5b1c5b1bbd481e98eddcabcfacaec0e62ed10480bbbfd2dfac080345b848dfa4d8229ac7d8ae9aecd5b
7
+ data.tar.gz: b8c8f5c4946e943d08695d8918aa48bbfd3760f71c6315c0a987e3928cc8512a80b26b186d1bd4d84aa8ba6a28065b27fc558b74a51b68cf0c15215be1458bd0
@@ -94,6 +94,18 @@ rbpango_attr_shape_initialize(int argc, VALUE *argv, VALUE self)
94
94
  return Qnil;
95
95
  }
96
96
 
97
+ static VALUE
98
+ rbpango_attr_shape_get_data(VALUE self)
99
+ {
100
+ PangoAttrShape *attr_shape;
101
+ VALUE rb_data;
102
+
103
+ Data_Get_Struct(self, PangoAttrShape, attr_shape);
104
+ rb_data = (VALUE)(attr_shape->data);
105
+ rb_p(rb_data);
106
+ return rb_data;
107
+ }
108
+
97
109
  static VALUE
98
110
  rbpango_attr_size_initialize(VALUE self, VALUE rb_size)
99
111
  {
@@ -120,8 +132,7 @@ rbpango_attribute_init(VALUE mPango)
120
132
  cAttribute); \
121
133
  } while (FALSE)
122
134
 
123
- #define DEFINE_ATTRIBUTE(ClassName, method_name, n_initialize_args) \
124
- do { \
135
+ #define DEFINE_ATTRIBUTE_BEGIN(ClassName, method_name, n_initialize_args) \
125
136
  VALUE c ## ClassName; \
126
137
  c ## ClassName = rb_define_class_under(mPango, \
127
138
  #ClassName, \
@@ -129,7 +140,12 @@ rbpango_attribute_init(VALUE mPango)
129
140
  rb_define_method(c ## ClassName, "initialize", \
130
141
  rbpango_ ## method_name ## _initialize, \
131
142
  n_initialize_args); \
132
- } while (FALSE)
143
+
144
+ #define DEFINE_ATTRIBUTE_END \
145
+
146
+ #define DEFINE_ATTRIBUTE(ClassName, method_name, n_initialize_args) \
147
+ DEFINE_ATTRIBUTE_BEGIN(ClassName, method_name, n_initialize_args) { \
148
+ } DEFINE_ATTRIBUTE_END;
133
149
 
134
150
  DEFINE_ABSTRACT_ATTRIBUTE(AttrBool);
135
151
  DEFINE_ABSTRACT_ATTRIBUTE(AttrColor);
@@ -138,7 +154,9 @@ rbpango_attribute_init(VALUE mPango)
138
154
  DEFINE_ATTRIBUTE(AttrFontFeatures, attr_font_features, 1);
139
155
  DEFINE_ABSTRACT_ATTRIBUTE(AttrInt);
140
156
  DEFINE_ATTRIBUTE(AttrLanguage, attr_language, 1);
141
- DEFINE_ATTRIBUTE(AttrShape, attr_shape, -1);
157
+ DEFINE_ATTRIBUTE_BEGIN(AttrShape, attr_shape, -1) {
158
+ rb_define_method(cAttrShape, "data", rbpango_attr_shape_get_data, 0);
159
+ } DEFINE_ATTRIBUTE_END;
142
160
  DEFINE_ATTRIBUTE(AttrSize, attr_size, 1);
143
161
  DEFINE_ABSTRACT_ATTRIBUTE(AttrString);
144
162
 
@@ -20,13 +20,24 @@
20
20
 
21
21
  #include "rb-pango-private.h"
22
22
 
23
+ #define RG_TARGET_NAMESPACE mPango
24
+
25
+ static VALUE
26
+ rg_s_pixels(G_GNUC_UNUSED VALUE self, VALUE pixels)
27
+ {
28
+ return rb_float_new(PANGO_PIXELS(NUM2DBL(pixels)));
29
+ }
30
+
23
31
  void
24
32
  Init_pango(void)
25
33
  {
26
- VALUE mPango;
34
+ VALUE RG_TARGET_NAMESPACE;
35
+
36
+ RG_TARGET_NAMESPACE = rb_define_module("Pango");
37
+
38
+ RG_DEF_SMETHOD(pixels, 1);
27
39
 
28
- mPango = rb_define_module("Pango");
29
- rbpango_attribute_init(mPango);
30
- rbpango_attr_list_init(mPango);
31
- rbpango_context_init(mPango);
40
+ rbpango_attribute_init(RG_TARGET_NAMESPACE);
41
+ rbpango_attr_list_init(RG_TARGET_NAMESPACE);
42
+ rbpango_context_init(RG_TARGET_NAMESPACE);
32
43
  }
Binary file
Binary file
Binary file
@@ -15,6 +15,23 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  module Pango
18
+ extend GLib::Deprecatable
19
+
20
+ define_deprecated_enums :Alignment, "ALIGN"
21
+ define_deprecated_enums :CoverageLevel, "COVERAGE"
22
+ define_deprecated_enums :Direction, "DIRECTION"
23
+ define_deprecated_enums :WrapMode, "WRAP"
24
+ define_deprecated_enums :FontMask, "FONT_MASK"
25
+ define_deprecated_enums :Stretch, "STRETCH"
26
+ define_deprecated_enums :Style, "STYLE"
27
+ define_deprecated_enums :Variant, "VARIANT"
28
+ define_deprecated_enums :Weight, "WEIGHT"
29
+ define_deprecated_enums :TabAlign, "TAB"
30
+ define_deprecated_enums :Underline, "UNDERLINE"
31
+ define_deprecated_enums :Script, "SCRIPT"
32
+ define_deprecated_enums :EllipsizeMode, "ELLIPSIZE"
33
+ define_deprecated_enums :RenderPart, "PART"
34
+
18
35
  class Context
19
36
  extend GLib::Deprecatable
20
37
 
@@ -31,7 +48,10 @@ module Pango
31
48
  extend GLib::Deprecatable
32
49
 
33
50
  define_deprecated_enums :Alignment, "ALIGN"
51
+ define_deprecated_const :Alignment, "Pango::Alignment"
34
52
  define_deprecated_enums :WrapMode, "WRAP"
53
+ define_deprecated_const :WrapMode, "Pango::WrapMode"
35
54
  define_deprecated_enums :EllipsizeMode, "ELLIPSIZE"
55
+ define_deprecated_const :EllipsizeMode, "Pango::EllipsizeMode"
36
56
  end
37
57
  end
@@ -28,13 +28,13 @@ module Pango
28
28
 
29
29
  alias_method :set_text_raw, :set_text
30
30
  def set_text(text)
31
- set_text_raw(text, text.length)
31
+ set_text_raw(text, text.bytesize)
32
32
  end
33
33
  alias_method :text=, :set_text
34
34
 
35
35
  alias_method :set_markup_raw, :set_markup
36
36
  def set_markup(markup)
37
- set_markup_raw(markup, markup.length)
37
+ set_markup_raw(markup, markup.bytesize)
38
38
  end
39
39
  alias_method :markup=, :set_markup
40
40
  end
@@ -49,6 +49,14 @@ module Pango
49
49
  end
50
50
  end
51
51
 
52
+ def load_field_reader(info, i, field_info, klass, name, method_name)
53
+ case klass.name
54
+ when "Pango::AttrShape"
55
+ return if klass.method_defined?(method_name)
56
+ end
57
+ super
58
+ end
59
+
52
60
  def load_method_info(info, klass, method_name)
53
61
  case klass.name
54
62
  when "Pango::Matrix"
@@ -39,14 +39,14 @@ class TestLayout < Test::Unit::TestCase
39
39
  end
40
40
 
41
41
  def test_set_text
42
- text = "Hello <b>World</b>!"
42
+ text = "こんにちは <b>World</b>!"
43
43
  @layout.text = text
44
44
  assert_equal(text, @layout.text)
45
45
  end
46
46
 
47
47
  def test_set_markup
48
- markup = "Hello <b>World</b>!"
48
+ markup = "こんにちは <b>World</b>!"
49
49
  @layout.markup = markup
50
- assert_equal("Hello World!", @layout.text)
50
+ assert_equal("こんにちは World!", @layout.text)
51
51
  end
52
52
  end
@@ -0,0 +1,23 @@
1
+ # Copyright (C) 2017 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 TestPango < Test::Unit::TestCase
18
+ include PangoTestUtils
19
+
20
+ def test_pixels
21
+ assert_in_delta(29, Pango.pixels(29 * Pango::SCALE), 0.00001)
22
+ end
23
+ end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pango
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-26 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.1.2
33
+ version: 3.1.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.1.2
40
+ version: 3.1.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gobject-introspection
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 3.1.2
47
+ version: 3.1.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 3.1.2
54
+ version: 3.1.3
55
55
  description: Ruby/Pango is a Ruby binding of pango-1.x.
56
56
  email: ruby-gnome2-devel-en@lists.sourceforge.net
57
57
  executables: []
@@ -99,6 +99,7 @@ files:
99
99
  - test/test-log-attr.rb
100
100
  - test/test-markup.rb
101
101
  - test/test-matrix.rb
102
+ - test/test-pango.rb
102
103
  - test/test-rectangle.rb
103
104
  - test/test-version.rb
104
105
  - vendor/local/bin/derb.exe