cairo 1.15.12 → 1.15.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9246c27ad4be18800b673b550196fe792d437811807e5e532c687c815389cd09
4
- data.tar.gz: 944ff6cf52ecf2c8d5f21093a535b3032e4bfa16dc44fb7c6c85f1af05eafab4
3
+ metadata.gz: 872d797ea9046334f26dea74fdf385c09f64fdaa8ec808730f54295a8f395a47
4
+ data.tar.gz: 4d7b4fb50859438dfc8c6fbaf23cf40b37e76cdab1279d2b36efe0327eeb8e8b
5
5
  SHA512:
6
- metadata.gz: 33b0640ad6a3eb1846496ecc946bc87dc78f90110b785b4283f7e8f8f289fcc8a750fea08b8f62b94e491fcbb68c56d74e9947c6265d5521a3d3b775786884ea
7
- data.tar.gz: 908b0cdfd11c78fedad6b475fd6604c3524bf5fb185a1a2105b6ddd9a7381bb202e45ffd71227059af32ee04bc8d50ef7a119248b5fae0b7abb0a64defbfcf7b
6
+ metadata.gz: c4ee0593dfac55f08f8746c8bf25ea7c77d1d02ceb1960e30b653971440956bb694ad117e9807d9ba044be5856d9bf8fc96850beefbca7098d50d5909037a4a2
7
+ data.tar.gz: 11c1ae52aeca7cb823a9d5e87d83f389425e6d1ec6fbc8dac662fd4c218e2294928351f14ed5fb6010f092b674094ea34379a24ca5d23a52b5472ceba45fd97b
data/NEWS CHANGED
@@ -1,3 +1,15 @@
1
+ Release 1.15.13 (2018-05-01) Kouhei Sutou <kou@cozmixng.org>
2
+ ============================================================
3
+
4
+ Improvements
5
+ ------------
6
+
7
+ * Added cairo 1.15.12 support.
8
+
9
+ * Added Cairo::FontOptions#variations
10
+
11
+ * Added Cairo::FontOptions#variations=
12
+
1
13
  Release 1.15.12 (2018-03-14) Kouhei Sutou <kou@cozmixng.org>
2
14
  ============================================================
3
15
 
data/Rakefile CHANGED
@@ -404,11 +404,7 @@ class WindowsTask
404
404
  end
405
405
 
406
406
  def ruby_gnome2_dir
407
- if RCairoBuild.for_64bit?
408
- @base_dir.parent + "ruby-gnome2.win64"
409
- else
410
- @base_dir.parent + "ruby-gnome2.win32"
411
- end
407
+ @base_dir.parent + "ruby-gnome2"
412
408
  end
413
409
 
414
410
  def ruby_glib2_pkg_config_path
@@ -489,7 +485,7 @@ windows_task = WindowsTask.new(spec) do |task|
489
485
  },
490
486
  {
491
487
  :name => "fontconfig",
492
- :version => "2.12.4",
488
+ :version => "2.13.0",
493
489
  :download_base_url => "https://www.freedesktop.org/software/fontconfig/release",
494
490
  :compression_method => "bz2",
495
491
  :windows => {
@@ -511,7 +507,7 @@ windows_task = WindowsTask.new(spec) do |task|
511
507
  },
512
508
  {
513
509
  :name => "cairo",
514
- :version => "1.15.10",
510
+ :version => "1.15.12",
515
511
  :download_site => :cairo_snapshots,
516
512
  :windows => {
517
513
  :built_file => "bin/libcairo-2.dll",
@@ -5,7 +5,7 @@
5
5
  * $Author: kou $
6
6
  * $Date: 2008-09-19 12:56:27 $
7
7
  *
8
- * Copyright 2006-2017 Kouhei Sutou <kou@cozmixng.org>
8
+ * Copyright 2006-2018 Kouhei Sutou <kou@cozmixng.org>
9
9
  * Copyright 2005 Øyvind Kolås <pippin@freedesktop.org>
10
10
  * Copyright 2004-2005 MenTaLguY <mental@rydia.com>
11
11
  *
@@ -73,7 +73,7 @@ RB_CAIRO_BEGIN_DECLS
73
73
 
74
74
  #define RB_CAIRO_VERSION_MAJOR 1
75
75
  #define RB_CAIRO_VERSION_MINOR 15
76
- #define RB_CAIRO_VERSION_MICRO 12
76
+ #define RB_CAIRO_VERSION_MICRO 13
77
77
 
78
78
  RB_CAIRO_VAR VALUE rb_mCairo;
79
79
  RB_CAIRO_VAR VALUE rb_cCairo_Context;
@@ -5,7 +5,7 @@
5
5
  * $Author: kou $
6
6
  * $Date: 2008-09-19 12:56:27 $
7
7
  *
8
- * Copyright 2005-2008 Kouhei Sutou <kou@cozmixng.org>
8
+ * Copyright 2005-2018 Kouhei Sutou <kou@cozmixng.org>
9
9
  *
10
10
  * This file is made available under the same terms as Ruby
11
11
  *
@@ -163,6 +163,27 @@ cr_options_get_hint_metrics (VALUE self)
163
163
  return INT2NUM (cairo_font_options_get_hint_metrics (_SELF (self)));
164
164
  }
165
165
 
166
+ #if CAIRO_CHECK_VERSION(1, 15, 12)
167
+ static VALUE
168
+ cr_options_set_variations (VALUE self, VALUE variations)
169
+ {
170
+ cairo_font_options_set_variations (_SELF (self),
171
+ RVAL2CSTR (variations));
172
+ return self;
173
+ }
174
+
175
+ static VALUE
176
+ cr_options_get_variations (VALUE self)
177
+ {
178
+ const char *variations;
179
+
180
+ variations = cairo_font_options_get_variations (_SELF (self));
181
+ if (!variations)
182
+ return Qnil;
183
+
184
+ return CSTR2RVAL (variations);
185
+ }
186
+ #endif
166
187
 
167
188
  void
168
189
  Init_cairo_font_options (void)
@@ -196,6 +217,12 @@ Init_cairo_font_options (void)
196
217
  cr_options_set_hint_metrics, 1);
197
218
  rb_define_method (rb_cCairo_FontOptions, "hint_metrics",
198
219
  cr_options_get_hint_metrics, 0);
220
+ #if CAIRO_CHECK_VERSION(1, 15, 12)
221
+ rb_define_method (rb_cCairo_FontOptions, "set_variations",
222
+ cr_options_set_variations, 1);
223
+ rb_define_method (rb_cCairo_FontOptions, "variations",
224
+ cr_options_get_variations, 0);
225
+ #endif
199
226
 
200
227
  RB_CAIRO_DEF_SETTERS (rb_cCairo_FontOptions);
201
228
  }
@@ -55,4 +55,11 @@ class FontOptionsTest < Test::Unit::TestCase
55
55
  assert_equal(:value, hash[@options.dup])
56
56
  end
57
57
  end
58
+
59
+ test "variations" do
60
+ only_cairo_version(1, 15, 12)
61
+ assert_nil(@options.variations)
62
+ @options.variations = "wdth=200"
63
+ assert_equal("wdth=200", @options.variations)
64
+ end
58
65
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cairo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.12
4
+ version: 1.15.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-15 00:00:00.000000000 Z
11
+ date: 2018-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pkg-config