pango 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +9 -4
- data/ext/pango/rbpangolayoutline.c +6 -2
- data/sample/layout.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c75aaa3b2c84becd0e4c4513adcf0e81d9cc9be
|
4
|
+
data.tar.gz: 298d5d938d320058fbac424e53ff52e9bd2409ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fdd25d2b63cffa6473b6fdb14ae1c8ac0293a98a6112207ef0d58b961132455b8ec1fd5a0cdeca885be2336e5f6d47d83356c811e34b2a320452e519957c62b
|
7
|
+
data.tar.gz: '0296e017cfb9465beef60c6474a155581d19785373d29172781f79396529dc184a4a26e4bea662c0e33830a198e2658418f1c3412e3f7650a0d3c6d4161cef4c'
|
data/Rakefile
CHANGED
@@ -29,15 +29,20 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
29
29
|
package.external_packages = [
|
30
30
|
{
|
31
31
|
:name => "icu",
|
32
|
-
:
|
33
|
-
:label => "
|
32
|
+
:download_site => :icu,
|
33
|
+
:label => "ICU",
|
34
|
+
:version => "58.2",
|
34
35
|
:base_name => "icu",
|
35
|
-
:archive_base_name =>
|
36
|
+
:archive_base_name => lambda do |package|
|
37
|
+
archive_base_name_version = package.version.gsub(".", "_")
|
38
|
+
"icu4c-#{archive_base_name_version}-src.tgz"
|
39
|
+
end,
|
36
40
|
:compression_method => "gz",
|
37
41
|
:base_dir_in_package => "source",
|
38
42
|
:windows => {
|
39
43
|
:configure_args => [
|
40
44
|
"--with-cross-build=#{package.package.tmp_dir}/native/icu/icu/source",
|
45
|
+
"CPPFLAGS=-DU_USE_STRTOD_L=0",
|
41
46
|
],
|
42
47
|
:built_file => "bin/icu-config",
|
43
48
|
},
|
@@ -50,7 +55,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
50
55
|
:name => "harfbuzz",
|
51
56
|
:download_site => :freedesktop,
|
52
57
|
:label => "HarfBuzz",
|
53
|
-
:version => "1.
|
58
|
+
:version => "1.4.1",
|
54
59
|
:compression_method => "bz2",
|
55
60
|
:windows => {
|
56
61
|
:configure_args => [
|
@@ -58,11 +58,15 @@ rg_index_to_x(VALUE self, VALUE index, VALUE trailing)
|
|
58
58
|
static VALUE
|
59
59
|
rg_x_to_index(VALUE self, VALUE x_pos)
|
60
60
|
{
|
61
|
-
int index
|
61
|
+
int index = 0;
|
62
|
+
int trailing = 0;
|
62
63
|
|
63
64
|
gboolean ret = pango_layout_line_x_to_index(_SELF(self), NUM2INT(x_pos),
|
64
65
|
&index, &trailing);
|
65
|
-
return
|
66
|
+
return rb_ary_new_from_args(3,
|
67
|
+
CBOOL2RVAL(ret),
|
68
|
+
INT2NUM(index),
|
69
|
+
INT2NUM(trailing));
|
66
70
|
}
|
67
71
|
|
68
72
|
static VALUE
|
data/sample/layout.rb
CHANGED
@@ -14,7 +14,7 @@ require 'pp'
|
|
14
14
|
puts
|
15
15
|
puts "Start----------"
|
16
16
|
puts
|
17
|
-
str = File.read("sample.txt")
|
17
|
+
str = File.read(File.join(__dir__, "sample.txt"))
|
18
18
|
context = Gdk::Pango.context
|
19
19
|
context.base_dir = Pango::Context::DIRECTION_LTR
|
20
20
|
context.language = Pango::Language.new("ja_JP")
|
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.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME2 Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cairo
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.1.
|
33
|
+
version: 3.1.1
|
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.
|
40
|
+
version: 3.1.1
|
41
41
|
description: Ruby/Pango is a Ruby binding of pango-1.x.
|
42
42
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
43
43
|
executables: []
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.5.
|
136
|
+
rubygems_version: 2.5.2
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Ruby/Pango is a Ruby binding of pango-1.x.
|