pango 3.0.8-x64-mingw32 → 3.0.9-x64-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +3 -3
- data/ext/pango/rbpangoattribute.c +7 -0
- data/ext/pango/rbpangoattrlist.c +2 -2
- data/ext/pango/rbpangocontext.c +49 -14
- data/ext/pango/rbpangoglyphinfo.c +5 -5
- data/lib/2.2/pango.so +0 -0
- data/lib/2.3/pango.so +0 -0
- data/test/test-context.rb +113 -0
- data/vendor/local/bin/genrb.exe +0 -0
- data/vendor/local/bin/hb-ot-shape-closure.exe +0 -0
- data/vendor/local/bin/hb-shape.exe +0 -0
- data/vendor/local/bin/hb-view.exe +0 -0
- data/vendor/local/bin/libharfbuzz-0.dll +0 -0
- data/vendor/local/bin/libpango-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangocairo-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangoft2-1.0-0.dll +0 -0
- data/vendor/local/bin/libpangowin32-1.0-0.dll +0 -0
- data/vendor/local/bin/makeconv.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/include/harfbuzz/hb-common.h +16 -6
- data/vendor/local/include/harfbuzz/hb-unicode.h +0 -15
- data/vendor/local/include/harfbuzz/hb-version.h +3 -3
- data/vendor/local/include/pango-1.0/pango/pango-features.h +2 -2
- data/vendor/local/lib/libharfbuzz-icu.a +0 -0
- data/vendor/local/lib/libharfbuzz-icu.la +3 -3
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +3 -3
- data/vendor/local/lib/libicudt.dll.a +0 -0
- data/vendor/local/lib/libicuin.dll.a +0 -0
- data/vendor/local/lib/libicuio.dll.a +0 -0
- data/vendor/local/lib/libicule.dll.a +0 -0
- data/vendor/local/lib/libiculx.dll.a +0 -0
- data/vendor/local/lib/libicutest.dll.a +0 -0
- data/vendor/local/lib/libicutu.dll.a +0 -0
- data/vendor/local/lib/libicuuc.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.dll.a +0 -0
- data/vendor/local/lib/libpango-1.0.la +1 -1
- data/vendor/local/lib/libpangocairo-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangocairo-1.0.la +1 -1
- data/vendor/local/lib/libpangoft2-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangoft2-1.0.la +1 -1
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +1 -1
- data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +1 -1
- data/vendor/local/lib/pkgconfig/pango.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangocairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangoft2.pc +1 -1
- data/vendor/local/lib/pkgconfig/pangowin32.pc +1 -1
- data/vendor/local/share/gtk-doc/html/harfbuzz/adding-text-to-the-buffer.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +7 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-10.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-11.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-2.html +32 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-20.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-22.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-28.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-30.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-31.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-38.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-39.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-41.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-42.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-5.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-7.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-0-9-8.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-0-5.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-1-2.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-1-1-3.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/buffers-language-script-and-direction.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/building.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/ch07.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/customizing-unicode-functions.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/fonts-and-faces.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Buffers.html +27 -26
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +17 -21
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +10 -9
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +43 -12
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +11 -10
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +61 -54
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-font.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-shape.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +9 -8
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +9 -8
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +7 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +7 -261
- data/vendor/local/share/gtk-doc/html/harfbuzz/hello-harfbuzz.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +3 -2
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +601 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/install-harfbuzz.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +8 -7
- data/vendor/local/share/gtk-doc/html/harfbuzz/plans-and-caching.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt01.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +6 -5
- data/vendor/local/share/gtk-doc/html/harfbuzz/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/setting-buffer-properties.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/shaping-and-shape-plans.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +142 -160
- data/vendor/local/share/gtk-doc/html/harfbuzz/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/using-harfbuzzs-native-opentype-implementation.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/using-your-own-font-functions.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/what-about-the-other-scripts.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/what-is-harfbuzz.html +5 -4
- data/vendor/local/share/gtk-doc/html/harfbuzz/why-is-it-called-harfbuzz.html +5 -4
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineLang.html +10 -10
- data/vendor/local/share/gtk-doc/html/pango/PangoEngineShape.html +8 -8
- data/vendor/local/share/gtk-doc/html/pango/PangoFcDecoder.html +9 -9
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFont.html +27 -27
- data/vendor/local/share/gtk-doc/html/pango/PangoFcFontMap.html +57 -57
- data/vendor/local/share/gtk-doc/html/pango/PangoMarkupFormat.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/PangoRenderer.html +53 -53
- data/vendor/local/share/gtk-doc/html/pango/annotation-glossary.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-10.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-12.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-14.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-16.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-18.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-2.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-20.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-22.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-24.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-26.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-30.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-31-0.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32-4.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-32.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-34.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-38.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-4.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-40.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-6.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-1-8.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-deprecated.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/api-index-full.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/pango/lowlevel.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/pango-Bidirectional-Text.html +24 -24
- data/vendor/local/share/gtk-doc/html/pango/pango-Cairo-Rendering.html +107 -107
- data/vendor/local/share/gtk-doc/html/pango/pango-CoreText-Fonts.html +5 -5
- data/vendor/local/share/gtk-doc/html/pango/pango-Coverage-Maps.html +31 -31
- data/vendor/local/share/gtk-doc/html/pango/pango-Engines.html +15 -15
- data/vendor/local/share/gtk-doc/html/pango/pango-Fonts.html +380 -390
- data/vendor/local/share/gtk-doc/html/pango/pango-FreeType-Fonts-and-Rendering.html +37 -37
- data/vendor/local/share/gtk-doc/html/pango/pango-Glyph-Storage.html +219 -219
- data/vendor/local/share/gtk-doc/html/pango/pango-Layout-Objects.html +295 -295
- data/vendor/local/share/gtk-doc/html/pango/pango-Miscellaneous-Utilities.html +108 -108
- data/vendor/local/share/gtk-doc/html/pango/pango-Modules.html +15 -15
- data/vendor/local/share/gtk-doc/html/pango/pango-OpenType-Font-Handling.html +142 -142
- data/vendor/local/share/gtk-doc/html/pango/pango-Scripts-and-Languages.html +85 -85
- data/vendor/local/share/gtk-doc/html/pango/pango-Tab-Stops.html +63 -63
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Attributes.html +340 -340
- data/vendor/local/share/gtk-doc/html/pango/pango-Text-Processing.html +163 -163
- data/vendor/local/share/gtk-doc/html/pango/pango-Version-Checking.html +11 -11
- data/vendor/local/share/gtk-doc/html/pango/pango-Vertical-Text.html +24 -24
- data/vendor/local/share/gtk-doc/html/pango/pango-Win32-Fonts-and-Rendering.html +54 -54
- data/vendor/local/share/gtk-doc/html/pango/pango-Xft-Fonts-and-Rendering.html +57 -57
- data/vendor/local/share/gtk-doc/html/pango/pango-hierarchy.html +7 -7
- data/vendor/local/share/gtk-doc/html/pango/pango.devhelp2 +200 -41
- data/vendor/local/share/gtk-doc/html/pango/pango.html +2 -2
- data/vendor/local/share/gtk-doc/html/pango/rendering.html +2 -2
- data/vendor/local/share/man/man1/pango-view.1 +1 -1
- metadata +7 -6
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4779d9649978816b973d7e43fedaaa4fd14dcfc9
|
4
|
+
data.tar.gz: 9bd503a684880a5897f0cd55d56ab35eaea46319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b60e33c83893383a759f5e17fc508c1e1cdf64fa3c704d8b8121eeb12726b1db7b218eef2c91a554c040e61626ab86d3688d88d13cafd03a9db9bd9795528e5
|
7
|
+
data.tar.gz: e66c6562de448bb51556f3aa8d86b6f34f0a03306f8afc821ab786a09e1d1f7ffac8ecd40ae45162bbad0b087bb6c2d88de2872b29a12367a3445e277ebdf41e
|
data/Rakefile
CHANGED
@@ -48,9 +48,9 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
48
48
|
},
|
49
49
|
{
|
50
50
|
:name => "harfbuzz",
|
51
|
-
:
|
51
|
+
:download_site => :freedesktop,
|
52
52
|
:label => "HarfBuzz",
|
53
|
-
:version => "1.
|
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.
|
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));
|
data/ext/pango/rbpangoattrlist.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C) 2011
|
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
|
67
|
+
return RVAL2CBOOL(rb_funcall((VALUE)data, id_call, 1, ATTR2RVAL(attr)));
|
68
68
|
}
|
69
69
|
|
70
70
|
static VALUE
|
data/ext/pango/rbpangocontext.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C) 2011
|
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
|
89
|
-
geo
|
90
|
-
geo
|
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
|
data/vendor/local/bin/genrb.exe
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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
|
308
|
-
/*8.0*/ HB_SCRIPT_ANATOLIAN_HIEROGLYPHS
|
309
|
-
/*8.0*/ HB_SCRIPT_HATRAN
|
310
|
-
/*8.0*/ HB_SCRIPT_MULTANI
|
311
|
-
/*8.0*/ HB_SCRIPT_OLD_HUNGARIAN
|
312
|
-
/*8.0*/ HB_SCRIPT_SIGNWRITING
|
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
|
41
|
-
#define HB_VERSION_MICRO
|
40
|
+
#define HB_VERSION_MINOR 3
|
41
|
+
#define HB_VERSION_MICRO 0
|
42
42
|
|
43
|
-
#define HB_VERSION_STRING "1.
|
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) <= \
|
Binary file
|
@@ -23,9 +23,9 @@ dependency_libs=' -R/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/lib -L/ho
|
|
23
23
|
weak_library_names=''
|
24
24
|
|
25
25
|
# Version information for libharfbuzz-icu.
|
26
|
-
current=
|
27
|
-
age=
|
28
|
-
revision=
|
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.win64/glib2/vendor/local/lib -L/ho
|
|
23
23
|
weak_library_names=''
|
24
24
|
|
25
25
|
# Version information for libharfbuzz.
|
26
|
-
current=
|
27
|
-
age=
|
28
|
-
revision=
|
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
|
Binary file
|
Binary file
|
Binary file
|
@@ -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.
|
8
|
+
Version: 1.40.1
|
9
9
|
Requires: pango freetype2 fontconfig
|
10
10
|
Requires.private: harfbuzz
|
11
11
|
Libs: -L${libdir} -lpangoft2-1.0
|