pango 2.2.5-x86-mingw32 → 3.0.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +19 -3
- data/ext/pango/depend +0 -1
- data/ext/pango/extconf.rb +0 -2
- data/ext/pango/rbpango.c +44 -6
- data/ext/pango/rbpango.h +0 -1
- data/ext/pango/rbpangoattribute.c +2 -2
- data/ext/pango/rbpangocairo.c +4 -4
- data/ext/pango/rbpangocontext.c +2 -2
- data/ext/pango/rbpangofontdescription.c +2 -2
- data/ext/pango/rbpangogravity.c +2 -2
- data/ext/pango/rbpangolanguage.c +8 -0
- data/ext/pango/rbpangolayout.c +15 -4
- data/ext/pango/rbpangomatrix.c +2 -2
- data/ext/pango/rbpangoscript.c +3 -3
- data/lib/2.0/pango.so +0 -0
- data/lib/2.1/pango.so +0 -0
- data/lib/2.2/pango.so +0 -0
- data/test/test-language.rb +5 -0
- data/test/test-layout.rb +7 -1
- data/vendor/local/bin/derb.exe +0 -0
- data/vendor/local/bin/genbrk.exe +0 -0
- data/vendor/local/bin/genccode.exe +0 -0
- data/vendor/local/bin/gencfu.exe +0 -0
- data/vendor/local/bin/gencmn.exe +0 -0
- data/vendor/local/bin/gencnval.exe +0 -0
- data/vendor/local/bin/gendict.exe +0 -0
- data/vendor/local/bin/gennorm2.exe +0 -0
- data/vendor/local/bin/genrb.exe +0 -0
- data/vendor/local/bin/gensprep.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/icu-config +6 -6
- data/vendor/local/bin/icuinfo.exe +0 -0
- data/vendor/local/bin/icupkg.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-querymodules.exe +0 -0
- data/vendor/local/bin/pango-view.exe +0 -0
- data/vendor/local/bin/pkgdata.exe +0 -0
- data/vendor/local/bin/uconv.exe +0 -0
- data/vendor/local/etc/pango/pango.modules +1 -1
- data/vendor/local/include/harfbuzz/hb-buffer.h +26 -1
- data/vendor/local/include/harfbuzz/hb-common.h +7 -0
- data/vendor/local/include/harfbuzz/hb-font.h +7 -6
- data/vendor/local/include/harfbuzz/hb-ft.h +58 -1
- data/vendor/local/include/harfbuzz/hb-glib.h +3 -0
- data/vendor/local/include/harfbuzz/hb-ot-font.h +4 -0
- data/vendor/local/include/harfbuzz/hb-shape.h +0 -3
- data/vendor/local/include/harfbuzz/hb-unicode.h +28 -3
- data/vendor/local/include/harfbuzz/hb-version.h +4 -4
- data/vendor/local/include/layout/LEFontInstance.h +2 -28
- data/vendor/local/include/layout/LETableReference.h +7 -2
- data/vendor/local/include/unicode/calendar.h +32 -2
- data/vendor/local/include/unicode/coll.h +9 -7
- data/vendor/local/include/unicode/datefmt.h +102 -13
- data/vendor/local/include/unicode/dcfmtsym.h +4 -2
- data/vendor/local/include/unicode/decimfmt.h +4 -5
- data/vendor/local/include/unicode/dtfmtsym.h +60 -1
- data/vendor/local/include/unicode/dtptngen.h +21 -7
- data/vendor/local/include/unicode/localpointer.h +49 -1
- data/vendor/local/include/unicode/locid.h +2 -3
- data/vendor/local/include/unicode/measfmt.h +30 -37
- data/vendor/local/include/unicode/measunit.h +65 -152
- data/vendor/local/include/unicode/measure.h +3 -3
- data/vendor/local/include/unicode/numfmt.h +3 -5
- data/vendor/local/include/unicode/platform.h +12 -2
- data/vendor/local/include/unicode/plurrule.h +18 -14
- data/vendor/local/include/unicode/rbnf.h +3 -4
- data/vendor/local/include/unicode/regex.h +42 -26
- data/vendor/local/include/unicode/region.h +9 -9
- data/vendor/local/include/unicode/reldatefmt.h +50 -45
- data/vendor/local/include/unicode/scientificnumberformatter.h +222 -0
- data/vendor/local/include/unicode/smpdtfmt.h +30 -24
- data/vendor/local/include/unicode/tblcoll.h +5 -4
- data/vendor/local/include/unicode/timezone.h +18 -1
- data/vendor/local/include/unicode/ucal.h +2 -2
- data/vendor/local/include/unicode/ucol.h +22 -18
- data/vendor/local/include/unicode/uconfig.h +17 -2
- data/vendor/local/include/unicode/udat.h +164 -56
- data/vendor/local/include/unicode/udatpg.h +9 -7
- data/vendor/local/include/unicode/ufieldpositer.h +121 -0
- data/vendor/local/include/unicode/uidna.h +21 -13
- data/vendor/local/include/unicode/ulistformatter.h +130 -0
- data/vendor/local/include/unicode/ulocdata.h +4 -3
- data/vendor/local/include/unicode/unistr.h +101 -53
- data/vendor/local/include/unicode/unum.h +7 -10
- data/vendor/local/include/unicode/uregex.h +52 -29
- data/vendor/local/include/unicode/urename.h +14 -3
- data/vendor/local/include/unicode/uscript.h +30 -16
- data/vendor/local/include/unicode/uspoof.h +13 -9
- data/vendor/local/include/unicode/utrans.h +5 -7
- data/vendor/local/include/unicode/utypes.h +9 -3
- data/vendor/local/include/unicode/uvernum.h +8 -8
- data/vendor/local/lib/icu/{54.1 → 55.1}/Makefile.inc +5 -5
- data/vendor/local/lib/icu/{54.1 → 55.1}/pkgdata.inc +1 -1
- data/vendor/local/lib/icu/Makefile.inc +5 -5
- data/vendor/local/lib/icu/pkgdata.inc +1 -1
- data/vendor/local/lib/icudt.dll +0 -0
- data/vendor/local/lib/{icudt54.dll → icudt55.dll} +0 -0
- data/vendor/local/lib/icuin.dll +0 -0
- data/vendor/local/lib/icuin55.dll +0 -0
- data/vendor/local/lib/icuio.dll +0 -0
- data/vendor/local/lib/icuio55.dll +0 -0
- data/vendor/local/lib/icule.dll +0 -0
- data/vendor/local/lib/icule55.dll +0 -0
- data/vendor/local/lib/iculx.dll +0 -0
- data/vendor/local/lib/iculx55.dll +0 -0
- data/vendor/local/lib/icutest.dll +0 -0
- data/vendor/local/lib/icutest55.dll +0 -0
- data/vendor/local/lib/icutu.dll +0 -0
- data/vendor/local/lib/icutu55.dll +0 -0
- data/vendor/local/lib/icuuc.dll +0 -0
- data/vendor/local/lib/icuuc55.dll +0 -0
- data/vendor/local/lib/libharfbuzz-icu.a +0 -0
- data/vendor/local/lib/libharfbuzz-icu.la +7 -7
- data/vendor/local/lib/libharfbuzz.dll.a +0 -0
- data/vendor/local/lib/libharfbuzz.la +7 -7
- 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 +2 -2
- 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 +2 -2
- data/vendor/local/lib/libpangowin32-1.0.dll.a +0 -0
- data/vendor/local/lib/libpangowin32-1.0.la +2 -2
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.la +2 -2
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.la +2 -2
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.la +2 -2
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll.a +0 -0
- data/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.la +2 -2
- data/vendor/local/lib/pkgconfig/harfbuzz-icu.pc +1 -1
- data/vendor/local/lib/pkgconfig/harfbuzz.pc +3 -1
- data/vendor/local/lib/pkgconfig/icu-i18n.pc +5 -5
- data/vendor/local/lib/pkgconfig/icu-io.pc +5 -5
- data/vendor/local/lib/pkgconfig/icu-le.pc +5 -5
- data/vendor/local/lib/pkgconfig/icu-lx.pc +5 -5
- data/vendor/local/lib/pkgconfig/icu-uc.pc +5 -5
- data/vendor/local/share/gtk-doc/html/harfbuzz/adding-text-to-the-buffer.html +35 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/annotation-glossary.html +30 -35
- data/vendor/local/share/gtk-doc/html/harfbuzz/api-index-full.html +158 -27
- data/vendor/local/share/gtk-doc/html/harfbuzz/buffers-language-script-and-direction.html +87 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/{ch01.html → ch06.html} +12 -13
- data/vendor/local/share/gtk-doc/html/harfbuzz/customizing-unicode-functions.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/deprecated-api-index.html +7 -8
- data/vendor/local/share/gtk-doc/html/harfbuzz/fonts-and-faces.html +40 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-Shaping.html +352 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-blob.html +88 -47
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-buffer.html +128 -204
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-common.html +290 -304
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-coretext.html +14 -23
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-deprecated.html +14 -17
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-face.html +40 -51
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-font.html +126 -190
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ft.html +19 -24
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-glib.html +14 -29
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-gobject.html +438 -11
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-graphite2.html +14 -25
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-icu.html +14 -29
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-layout.html +19 -160
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot-tag.html +21 -36
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-ot.html +14 -11
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-set.html +70 -81
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape-plan.html +33 -44
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-unicode.html +290 -323
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-uniscribe.html +14 -23
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-version.html +59 -27
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb.html +16 -13
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz.devhelp2 +415 -104
- data/vendor/local/share/gtk-doc/html/harfbuzz/hello-harfbuzz.html +181 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.html +43 -12
- data/vendor/local/share/gtk-doc/html/harfbuzz/object-tree.html +11 -13
- data/vendor/local/share/gtk-doc/html/harfbuzz/plans-and-caching.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt01.html +70 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/pt02.html +107 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/setting-buffer-properties.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/shaping-and-shape-plans.html +39 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/style.css +9 -6
- data/vendor/local/share/gtk-doc/html/harfbuzz/using-harfbuzzs-native-opentype-implementation.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/using-your-own-font-functions.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/what-about-the-other-scripts.html +31 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/what-is-harfbuzz.html +124 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/why-is-it-called-harfbuzz.html +38 -0
- data/vendor/local/share/icu/{54.1 → 55.1}/config/mh-mingw +0 -0
- data/vendor/local/share/icu/{54.1 → 55.1}/install-sh +0 -0
- data/vendor/local/share/icu/{54.1 → 55.1}/license.html +3 -4
- data/vendor/local/share/icu/{54.1 → 55.1}/mkinstalldirs +0 -0
- data/vendor/local/share/man/man1/derb.1 +2 -2
- data/vendor/local/share/man/man1/genbrk.1 +2 -2
- data/vendor/local/share/man/man1/gencfu.1 +1 -1
- data/vendor/local/share/man/man1/gencnval.1 +3 -3
- data/vendor/local/share/man/man1/gendict.1 +2 -2
- data/vendor/local/share/man/man1/genrb.1 +3 -3
- data/vendor/local/share/man/man1/icu-config.1 +2 -2
- data/vendor/local/share/man/man1/makeconv.1 +3 -3
- data/vendor/local/share/man/man1/pkgdata.1 +2 -2
- data/vendor/local/share/man/man1/uconv.1 +2 -2
- data/vendor/local/share/man/man8/genccode.8 +2 -2
- data/vendor/local/share/man/man8/gencmn.8 +3 -3
- data/vendor/local/share/man/man8/gensprep.8 +3 -3
- data/vendor/local/share/man/man8/icupkg.8 +1 -1
- metadata +38 -22
- data/vendor/local/include/unicode/scientificformathelper.h +0 -139
- data/vendor/local/lib/icuin54.dll +0 -0
- data/vendor/local/lib/icuio54.dll +0 -0
- data/vendor/local/lib/icule54.dll +0 -0
- data/vendor/local/lib/iculx54.dll +0 -0
- data/vendor/local/lib/icutest54.dll +0 -0
- data/vendor/local/lib/icutu54.dll +0 -0
- data/vendor/local/lib/icuuc54.dll +0 -0
- data/vendor/local/share/gtk-doc/html/harfbuzz/harfbuzz-hb-shape.html +0 -286
- data/vendor/local/share/gtk-doc/html/harfbuzz/index.sgml +0 -496
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e5c5123a1a22d4c33bd297f441c7fd4c38551fd
|
4
|
+
data.tar.gz: f948504a7cf00f2bb89c7bd4a406c9c2c7d1e3f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2dc2124cc7ff10241d8f101a3afff53aecddef18bf36eb02f9f82cac1280880475851048619f4df00ba5a1e304b338512dfab303192d6d03867b7a8a387eeb9
|
7
|
+
data.tar.gz: 044ec8e559fad3087bac6bb05b53d79a222c9a2ae8c9acf060076096023e1e7a3cd20e7df640550cc25926b7586f64c207f3d3d9c0ffd915202f1e9b4f13cefd
|
data/Rakefile
CHANGED
@@ -1,4 +1,20 @@
|
|
1
1
|
# -*- ruby -*-
|
2
|
+
#
|
3
|
+
# Copyright (C) 2011-2015 Ruby-GNOME2 Project Team
|
4
|
+
#
|
5
|
+
# This library is free software; you can redistribute it and/or
|
6
|
+
# modify it under the terms of the GNU Lesser General Public
|
7
|
+
# License as published by the Free Software Foundation; either
|
8
|
+
# version 2.1 of the License, or (at your option) any later version.
|
9
|
+
#
|
10
|
+
# This library is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
# Lesser General Public License for more details.
|
14
|
+
#
|
15
|
+
# You should have received a copy of the GNU Lesser General Public
|
16
|
+
# License along with this library; if not, write to the Free Software
|
17
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2
18
|
|
3
19
|
$LOAD_PATH.unshift("./../glib2/lib")
|
4
20
|
require "gnome2/rake/package-task"
|
@@ -13,10 +29,10 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
13
29
|
package.external_packages = [
|
14
30
|
{
|
15
31
|
:name => "icu",
|
16
|
-
:download_base_url => "http://download.icu-project.org/files/icu4c/
|
32
|
+
:download_base_url => "http://download.icu-project.org/files/icu4c/55.1",
|
17
33
|
:label => "gobject-introspection",
|
18
34
|
:base_name => "icu",
|
19
|
-
:archive_base_name => "icu4c-
|
35
|
+
:archive_base_name => "icu4c-55_1-src.tgz",
|
20
36
|
:compression_method => "gz",
|
21
37
|
:base_dir_in_package => "source",
|
22
38
|
:windows => {
|
@@ -34,7 +50,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
34
50
|
:name => "harfbuzz",
|
35
51
|
:download_base_url => "http://www.freedesktop.org/software/harfbuzz/release",
|
36
52
|
:label => "HarfBuzz",
|
37
|
-
:version => "0.
|
53
|
+
:version => "1.0.3",
|
38
54
|
:compression_method => "bz2",
|
39
55
|
:windows => {
|
40
56
|
:configure_args => [
|
data/ext/pango/depend
CHANGED
data/ext/pango/extconf.rb
CHANGED
@@ -75,8 +75,6 @@ have_func("pango_attr_iterator_get_attrs", pango_header)
|
|
75
75
|
have_func("pango_itemize_with_base_dir", pango_header)
|
76
76
|
have_func("pango_font_family_is_monospace", pango_header)
|
77
77
|
|
78
|
-
make_version_header("PANGO", "pango", ".")
|
79
|
-
|
80
78
|
create_pkg_config_file("Ruby/Pango", package_id)
|
81
79
|
$defs << " -DRUBY_PANGO_COMPILATION"
|
82
80
|
create_makefile(module_name)
|
data/ext/pango/rbpango.c
CHANGED
@@ -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-2015 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
|
@@ -31,6 +31,40 @@ extern void Init_pango(void);
|
|
31
31
|
* Rendering
|
32
32
|
*/
|
33
33
|
|
34
|
+
static VALUE
|
35
|
+
rg_s_version(G_GNUC_UNUSED VALUE self)
|
36
|
+
{
|
37
|
+
return INT2NUM(pango_version());
|
38
|
+
}
|
39
|
+
|
40
|
+
static VALUE
|
41
|
+
rg_s_version_string(G_GNUC_UNUSED VALUE self)
|
42
|
+
{
|
43
|
+
return CSTR2RVAL(pango_version_string());
|
44
|
+
}
|
45
|
+
|
46
|
+
static VALUE
|
47
|
+
rg_s_check_version(G_GNUC_UNUSED VALUE self,
|
48
|
+
VALUE major, VALUE minor, VALUE micro)
|
49
|
+
{
|
50
|
+
const gchar *error_message;
|
51
|
+
error_message = pango_version_check(NUM2INT(major),
|
52
|
+
NUM2INT(minor),
|
53
|
+
NUM2INT(micro));
|
54
|
+
return CSTR2RVAL(error_message);
|
55
|
+
}
|
56
|
+
|
57
|
+
static VALUE
|
58
|
+
rg_s_check_version_p(G_GNUC_UNUSED VALUE self,
|
59
|
+
VALUE major, VALUE minor, VALUE micro)
|
60
|
+
{
|
61
|
+
const gchar *error_message;
|
62
|
+
error_message = pango_version_check(NUM2INT(major),
|
63
|
+
NUM2INT(minor),
|
64
|
+
NUM2INT(micro));
|
65
|
+
return CBOOL2RVAL(!error_message);
|
66
|
+
}
|
67
|
+
|
34
68
|
struct rpango_reorder_items_args {
|
35
69
|
PangoItem *item;
|
36
70
|
VALUE ary;
|
@@ -261,12 +295,16 @@ Init_pango(void)
|
|
261
295
|
{
|
262
296
|
RG_TARGET_NAMESPACE = rb_define_module("Pango");
|
263
297
|
|
264
|
-
rb_define_const(RG_TARGET_NAMESPACE, "BUILD_VERSION",
|
265
|
-
rb_ary_new3(3,
|
266
|
-
INT2FIX(
|
267
|
-
INT2FIX(
|
268
|
-
INT2FIX(
|
298
|
+
rb_define_const(RG_TARGET_NAMESPACE, "BUILD_VERSION",
|
299
|
+
rb_ary_new3(3,
|
300
|
+
INT2FIX(PANGO_VERSION_MAJOR),
|
301
|
+
INT2FIX(PANGO_VERSION_MINOR),
|
302
|
+
INT2FIX(PANGO_VERSION_MICRO)));
|
269
303
|
|
304
|
+
RG_DEF_SMETHOD(version, 0);
|
305
|
+
RG_DEF_SMETHOD(version_string, 0);
|
306
|
+
RG_DEF_SMETHOD(check_version, 3);
|
307
|
+
RG_DEF_SMETHOD_P(check_version, 3);
|
270
308
|
RG_DEF_SMETHOD(reorder_items, 1);
|
271
309
|
RG_DEF_SMETHOD(unichar_direction, 1);
|
272
310
|
RG_DEF_SMETHOD(find_base_dir, 1);
|
data/ext/pango/rbpango.h
CHANGED
@@ -282,7 +282,7 @@ attr_AttrAbsoluteSize_initialize(VALUE self, VALUE size)
|
|
282
282
|
return Qnil;
|
283
283
|
}
|
284
284
|
|
285
|
-
#if
|
285
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
286
286
|
static VALUE
|
287
287
|
attr_AttrGravity_initialize(VALUE self, VALUE gravity)
|
288
288
|
{
|
@@ -438,7 +438,7 @@ Init_pango_attribute(VALUE mPango)
|
|
438
438
|
MAKE_ATTR(PANGO_ATTR_STRETCH, AttrStretch, pattrint, 1);
|
439
439
|
MAKE_ATTR(PANGO_ATTR_SIZE, AttrSize, pattrint, 1);
|
440
440
|
MAKE_ATTR(PANGO_ATTR_ABSOLUTE_SIZE, AttrAbsoluteSize, pattrint, 1);
|
441
|
-
#if
|
441
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
442
442
|
MAKE_ATTR(PANGO_ATTR_GRAVITY, AttrGravity, pattrint, 1);
|
443
443
|
MAKE_ATTR(PANGO_ATTR_GRAVITY_HINT, AttrGravityHint, pattrint, 1);
|
444
444
|
#endif
|
data/ext/pango/rbpangocairo.c
CHANGED
@@ -34,7 +34,7 @@ rg_s_create(int argc, VALUE *argv, G_GNUC_UNUSED VALUE klass)
|
|
34
34
|
if (NIL_P(rb_font_type)) {
|
35
35
|
font_map = pango_cairo_font_map_new();
|
36
36
|
} else {
|
37
|
-
#if
|
37
|
+
#if PANGO_VERSION_CHECK(1, 18, 0)
|
38
38
|
cairo_font_type_t font_type = CAIRO_FONT_TYPE_USER;
|
39
39
|
if (rbgutil_key_equal(rb_font_type, "ft") ||
|
40
40
|
rbgutil_key_equal(rb_font_type, "freetype")) {
|
@@ -66,7 +66,7 @@ rg_s_default(G_GNUC_UNUSED VALUE klass)
|
|
66
66
|
return GOBJ2RVAL(pango_cairo_font_map_get_default());
|
67
67
|
}
|
68
68
|
|
69
|
-
#if
|
69
|
+
#if PANGO_VERSION_CHECK(1, 22, 0)
|
70
70
|
static VALUE
|
71
71
|
rg_s_set_default(VALUE klass, VALUE font_map)
|
72
72
|
{
|
@@ -93,7 +93,7 @@ rg_create_context(VALUE self)
|
|
93
93
|
{
|
94
94
|
PangoContext *pango_context;
|
95
95
|
|
96
|
-
#if
|
96
|
+
#if PANGO_VERSION_CHECK(1, 22, 0)
|
97
97
|
pango_context = pango_font_map_create_context(PANGO_FONT_MAP(_SELF(self)));
|
98
98
|
#else
|
99
99
|
pango_context = pango_cairo_font_map_create_context(_SELF(self));
|
@@ -112,7 +112,7 @@ Init_pango_cairo(VALUE mPango)
|
|
112
112
|
|
113
113
|
RG_DEF_SMETHOD(create, -1);
|
114
114
|
RG_DEF_SMETHOD(default, 0);
|
115
|
-
#if
|
115
|
+
#if PANGO_VERSION_CHECK(1, 22, 0)
|
116
116
|
RG_DEF_SMETHOD(set_default, 1);
|
117
117
|
#endif
|
118
118
|
|
data/ext/pango/rbpangocontext.c
CHANGED
@@ -129,7 +129,7 @@ rg_set_base_dir(VALUE self, VALUE direction)
|
|
129
129
|
return self;
|
130
130
|
}
|
131
131
|
|
132
|
-
#if
|
132
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
133
133
|
static VALUE
|
134
134
|
rg_base_gravity(VALUE self)
|
135
135
|
{
|
@@ -280,7 +280,7 @@ Init_pango_context(VALUE mPango)
|
|
280
280
|
RG_DEF_METHOD(set_language, 1);
|
281
281
|
RG_DEF_METHOD(base_dir, 0);
|
282
282
|
RG_DEF_METHOD(set_base_dir, 1);
|
283
|
-
#if
|
283
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
284
284
|
RG_DEF_METHOD(base_gravity, 0);
|
285
285
|
RG_DEF_METHOD(set_base_gravity, 1);
|
286
286
|
RG_DEF_METHOD(gravity_hint, 0);
|
@@ -163,7 +163,7 @@ rg_size_is_absolute_p(VALUE self)
|
|
163
163
|
return CBOOL2RVAL(pango_font_description_get_size_is_absolute(_SELF(self)));
|
164
164
|
}
|
165
165
|
|
166
|
-
#if
|
166
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
167
167
|
static VALUE
|
168
168
|
rg_gravity(VALUE self)
|
169
169
|
{
|
@@ -248,7 +248,7 @@ Init_pango_font_description(VALUE mPango)
|
|
248
248
|
RG_DEF_METHOD(size, 0);
|
249
249
|
RG_DEF_METHOD(set_absolute_size, 1);
|
250
250
|
RG_DEF_METHOD_P(size_is_absolute, 0);
|
251
|
-
#if
|
251
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
252
252
|
RG_DEF_METHOD(set_gravity, 1);
|
253
253
|
RG_DEF_METHOD(gravity, 0);
|
254
254
|
#endif
|
data/ext/pango/rbpangogravity.c
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
#include "rbpangoprivate.h"
|
22
22
|
|
23
|
-
#if
|
23
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
24
24
|
|
25
25
|
#define RG_TARGET_NAMESPACE mGravity
|
26
26
|
|
@@ -40,7 +40,7 @@ rg_s_vertical_p(G_GNUC_UNUSED VALUE self, VALUE gravity)
|
|
40
40
|
void
|
41
41
|
Init_pango_gravity(VALUE mPango)
|
42
42
|
{
|
43
|
-
#if
|
43
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
44
44
|
VALUE RG_TARGET_NAMESPACE = rb_define_module_under(mPango, "Gravity");
|
45
45
|
|
46
46
|
RG_DEF_SMETHOD(to_rotation, 1);
|
data/ext/pango/rbpangolanguage.c
CHANGED
@@ -69,6 +69,12 @@ rg_includes_script(VALUE self, VALUE script)
|
|
69
69
|
RVAL2PANGOSCRIPT(script)));
|
70
70
|
}
|
71
71
|
|
72
|
+
static VALUE
|
73
|
+
rg_sample_string(VALUE self)
|
74
|
+
{
|
75
|
+
return CSTR2RVAL(pango_language_get_sample_string(_SELF(self)));
|
76
|
+
}
|
77
|
+
|
72
78
|
void
|
73
79
|
Init_pango_language(VALUE mPango)
|
74
80
|
{
|
@@ -83,4 +89,6 @@ Init_pango_language(VALUE mPango)
|
|
83
89
|
RG_DEF_ALIAS("to_s", "to_str");
|
84
90
|
|
85
91
|
RG_DEF_METHOD(includes_script, 1);
|
92
|
+
|
93
|
+
RG_DEF_METHOD(sample_string, 0);
|
86
94
|
}
|
data/ext/pango/rbpangolayout.c
CHANGED
@@ -154,7 +154,7 @@ rg_width(VALUE self)
|
|
154
154
|
return INT2NUM(pango_layout_get_width(_SELF(self)));
|
155
155
|
}
|
156
156
|
|
157
|
-
#if
|
157
|
+
#if PANGO_VERSION_CHECK(1, 20, 0)
|
158
158
|
static VALUE
|
159
159
|
rg_set_height(VALUE self, VALUE width)
|
160
160
|
{
|
@@ -195,7 +195,7 @@ rg_ellipsize(VALUE self)
|
|
195
195
|
return PANGOELLIPSIZEMODE2RVAL(pango_layout_get_ellipsize(_SELF(self)));
|
196
196
|
}
|
197
197
|
|
198
|
-
#if
|
198
|
+
#if PANGO_VERSION_CHECK(1, 16, 0)
|
199
199
|
static VALUE
|
200
200
|
rg_ellipsized_p(VALUE self)
|
201
201
|
{
|
@@ -498,6 +498,14 @@ rg_iter(VALUE self)
|
|
498
498
|
return PANGOLAYOUTITER2RVAL(pango_layout_get_iter(_SELF(self)));
|
499
499
|
}
|
500
500
|
|
501
|
+
#if PANGO_VERSION_CHECK(1, 22, 0)
|
502
|
+
static VALUE
|
503
|
+
rg_baseline(VALUE self)
|
504
|
+
{
|
505
|
+
return INT2NUM(pango_layout_get_baseline(_SELF(self)));
|
506
|
+
}
|
507
|
+
#endif
|
508
|
+
|
501
509
|
void
|
502
510
|
Init_pango_layout(VALUE mPango)
|
503
511
|
{
|
@@ -517,7 +525,7 @@ Init_pango_layout(VALUE mPango)
|
|
517
525
|
RG_DEF_METHOD(font_description, 0);
|
518
526
|
RG_DEF_METHOD(set_width, 1);
|
519
527
|
RG_DEF_METHOD(width, 0);
|
520
|
-
#if
|
528
|
+
#if PANGO_VERSION_CHECK(1, 20, 0)
|
521
529
|
RG_DEF_METHOD(set_height, 1);
|
522
530
|
RG_DEF_METHOD(height, 0);
|
523
531
|
#endif
|
@@ -525,7 +533,7 @@ Init_pango_layout(VALUE mPango)
|
|
525
533
|
RG_DEF_METHOD(wrap, 0);
|
526
534
|
RG_DEF_METHOD(set_ellipsize, 1);
|
527
535
|
RG_DEF_METHOD(ellipsize, 0);
|
528
|
-
#if
|
536
|
+
#if PANGO_VERSION_CHECK(1, 16, 0)
|
529
537
|
RG_DEF_METHOD_P(ellipsized, 0);
|
530
538
|
#endif
|
531
539
|
RG_DEF_METHOD(set_indent, 1);
|
@@ -557,6 +565,9 @@ Init_pango_layout(VALUE mPango)
|
|
557
565
|
RG_DEF_METHOD(get_line, 1);
|
558
566
|
RG_DEF_METHOD(lines, 0);
|
559
567
|
RG_DEF_METHOD(iter, 0);
|
568
|
+
#if PANGO_VERSION_CHECK(1, 22, 0)
|
569
|
+
RG_DEF_METHOD(baseline, 0);
|
570
|
+
#endif
|
560
571
|
|
561
572
|
/* PangoWrapMode */
|
562
573
|
G_DEF_CLASS(PANGO_TYPE_WRAP_MODE, "WrapMode", RG_TARGET_NAMESPACE);
|
data/ext/pango/rbpangomatrix.c
CHANGED
@@ -82,7 +82,7 @@ rg_rotate_bang(VALUE self, VALUE degrees)
|
|
82
82
|
return self;
|
83
83
|
}
|
84
84
|
|
85
|
-
#if
|
85
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
86
86
|
static VALUE
|
87
87
|
rg_gravity(VALUE self)
|
88
88
|
{
|
@@ -129,7 +129,7 @@ Init_pango_matrix(VALUE mPango)
|
|
129
129
|
RG_DEF_METHOD_BANG(rotate, 1);
|
130
130
|
RG_DEF_METHOD_BANG(concat, 1);
|
131
131
|
RG_DEF_METHOD(font_scale_factor, 0);
|
132
|
-
#if
|
132
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
133
133
|
RG_DEF_METHOD(gravity, 0);
|
134
134
|
#endif
|
135
135
|
RG_DEF_METHOD(to_a, 0);
|
data/ext/pango/rbpangoscript.c
CHANGED
@@ -37,7 +37,7 @@ rg_sample_language(VALUE self)
|
|
37
37
|
return PANGOLANGUAGE2RVAL(lang);
|
38
38
|
}
|
39
39
|
|
40
|
-
#if
|
40
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
41
41
|
static VALUE
|
42
42
|
rg_get_gravity(int argc, VALUE *argv, VALUE self)
|
43
43
|
{
|
@@ -52,7 +52,7 @@ rg_get_gravity(int argc, VALUE *argv, VALUE self)
|
|
52
52
|
RVAL2PANGOGRAVITY(gravity),
|
53
53
|
RVAL2PANGOGRAVITYHINT(gravity_hint));
|
54
54
|
} else {
|
55
|
-
# if
|
55
|
+
# if PANGO_VERSION_CHECK(1,26,0)
|
56
56
|
g = pango_gravity_get_for_script_and_width(_SELF(self),
|
57
57
|
RVAL2CBOOL(wide),
|
58
58
|
RVAL2PANGOGRAVITY(gravity),
|
@@ -78,7 +78,7 @@ Init_pango_script(VALUE mPango)
|
|
78
78
|
|
79
79
|
RG_DEF_SMETHOD(for_unichar, 1);
|
80
80
|
RG_DEF_METHOD(sample_language, 0);
|
81
|
-
#if
|
81
|
+
#if PANGO_VERSION_CHECK(1,16,0)
|
82
82
|
RG_DEF_METHOD(get_gravity, -1);
|
83
83
|
#endif
|
84
84
|
}
|
data/lib/2.0/pango.so
CHANGED
Binary file
|
data/lib/2.1/pango.so
CHANGED
Binary file
|
data/lib/2.2/pango.so
CHANGED
Binary file
|
data/test/test-language.rb
CHANGED
@@ -4,4 +4,9 @@ class TestLanguage < Test::Unit::TestCase
|
|
4
4
|
def test_default
|
5
5
|
assert_match(/\A[a-z]{2}-[a-z]{2}\z/, Pango::Language.default.to_s)
|
6
6
|
end
|
7
|
+
|
8
|
+
def test_sample_string
|
9
|
+
assert_equal("The quick brown fox jumps over the lazy dog.",
|
10
|
+
Pango::Language.new("en").sample_string)
|
11
|
+
end
|
7
12
|
end
|
data/test/test-layout.rb
CHANGED
@@ -2,7 +2,8 @@ class TestLayout < Test::Unit::TestCase
|
|
2
2
|
include PangoTestUtils
|
3
3
|
|
4
4
|
def setup
|
5
|
-
@
|
5
|
+
@font_map = Pango::CairoFontMap.default
|
6
|
+
@context = @font_map.create_context
|
6
7
|
@layout = Pango::Layout.new(@context)
|
7
8
|
end
|
8
9
|
|
@@ -31,4 +32,9 @@ class TestLayout < Test::Unit::TestCase
|
|
31
32
|
def test_ellipsized?
|
32
33
|
assert_false(@layout.ellipsized?)
|
33
34
|
end
|
35
|
+
|
36
|
+
def test_baseline
|
37
|
+
only_pango_version(1, 22, 0)
|
38
|
+
assert_kind_of(Integer, @layout.baseline)
|
39
|
+
end
|
34
40
|
end
|
data/vendor/local/bin/derb.exe
CHANGED
Binary file
|
data/vendor/local/bin/genbrk.exe
CHANGED
Binary file
|
Binary file
|
data/vendor/local/bin/gencfu.exe
CHANGED
Binary file
|
data/vendor/local/bin/gencmn.exe
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/genrb.exe
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/icu-config
CHANGED
@@ -60,7 +60,7 @@ datadir="${datarootdir}"
|
|
60
60
|
sbindir="${exec_prefix}/sbin"
|
61
61
|
|
62
62
|
# about the ICU version
|
63
|
-
VERSION="
|
63
|
+
VERSION="55.1"
|
64
64
|
UNICODE_VERSION="7.0"
|
65
65
|
|
66
66
|
# The prefix for ICU libraries, normally 'icu'
|
@@ -211,7 +211,7 @@ CPPFLAGS="-I${prefix}/include"
|
|
211
211
|
CXXFLAGS="--std=c++0x"
|
212
212
|
CXX="i686-w64-mingw32-g++"
|
213
213
|
DEFAULT_MODE="dll"
|
214
|
-
DEFS="-DPACKAGE_NAME=\"ICU\" -DPACKAGE_TARNAME=\"International\ Components\ for\ Unicode\" -DPACKAGE_VERSION=\"
|
214
|
+
DEFS="-DPACKAGE_NAME=\"ICU\" -DPACKAGE_TARNAME=\"International\ Components\ for\ Unicode\" -DPACKAGE_VERSION=\"55.1\" -DPACKAGE_STRING=\"ICU\ 55.1\" -DPACKAGE_BUGREPORT=\"http://icu-project.org/bugs\" -DPACKAGE_URL=\"http://icu-project.org\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSIZEOF_VOID_P=4 -DHAVE_LIBM=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LIBPTHREAD=1 -DHAVE_INTTYPES_H=1 -DHAVE_DIRENT_H=1 -DHAVE_WCHAR_H=1 -DSIZEOF_WCHAR_T=2 "
|
215
215
|
# use a consistent INSTALL
|
216
216
|
INSTALL="${SHELL} ${pkgdatadir}/install-sh -c"
|
217
217
|
INSTALL_DATA="${INSTALL} -m 644"
|
@@ -220,8 +220,8 @@ INSTALL_SCRIPT="${INSTALL}"
|
|
220
220
|
LDFLAGS="${RPATHLDFLAGS}"
|
221
221
|
LIBS="-lpthread -lm "
|
222
222
|
LIB_M=""
|
223
|
-
LIB_VERSION="
|
224
|
-
LIB_VERSION_MAJOR="
|
223
|
+
LIB_VERSION="55.1"
|
224
|
+
LIB_VERSION_MAJOR="55"
|
225
225
|
MKINSTALLDIRS="${SHELL} ${pkgdatadir}/mkinstalldirs"
|
226
226
|
RANLIB="i686-w64-mingw32-ranlib"
|
227
227
|
RMV="rm -rf"
|
@@ -249,7 +249,7 @@ INSTALL_L="${INSTALL_DATA}"
|
|
249
249
|
|
250
250
|
# The basename of the ICU data file (i.e. icudt21b )
|
251
251
|
ICUDATA_CHAR="l"
|
252
|
-
ICUDATA_NAME="
|
252
|
+
ICUDATA_NAME="icudt55l"
|
253
253
|
|
254
254
|
# Defaults for pkgdata's mode and directories
|
255
255
|
# The default data dir changes depending on what packaging mode
|
@@ -817,4 +817,4 @@ sanity
|
|
817
817
|
## END of icu-config-bottom
|
818
818
|
|
819
819
|
exit 0
|
820
|
-
# Rebuilt on
|
820
|
+
# Rebuilt on Wed Sep 9 12:58:37 UTC 2015
|
Binary file
|
data/vendor/local/bin/icupkg.exe
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/uconv.exe
CHANGED
Binary file
|
@@ -13,7 +13,7 @@
|
|
13
13
|
/home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll kndaIndicScriptEngineLang PangoEngineLang PangoRenderNone kannada:*
|
14
14
|
/home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll mlymIndicScriptEngineLang PangoEngineLang PangoRenderNone malayalam:*
|
15
15
|
/home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/pango/1.8.0/modules/pango-indic-lang.dll sinhIndicScriptEngineLang PangoEngineLang PangoRenderNone sinhala:*
|
16
|
-
/home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll BasicScriptEngineFc PangoEngineShape PangoRenderFc common:
|
17
16
|
/home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/pango/1.8.0/modules/pango-arabic-lang.dll ArabicScriptEngineLang PangoEngineLang PangoRenderNone arabic:*
|
18
17
|
/home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/pango/1.8.0/modules/pango-basic-win32.dll BasicScriptEngineWin32 PangoEngineShape PangoRenderWin32 common:
|
18
|
+
/home/vagrant/ruby-gnome2.win32/pango/vendor/local/lib/pango/1.8.0/modules/pango-basic-fc.dll BasicScriptEngineFc PangoEngineShape PangoRenderFc common:
|
19
19
|
|
@@ -185,7 +185,19 @@ hb_buffer_set_flags (hb_buffer_t *buffer,
|
|
185
185
|
hb_buffer_flags_t
|
186
186
|
hb_buffer_get_flags (hb_buffer_t *buffer);
|
187
187
|
|
188
|
+
typedef enum {
|
189
|
+
HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES = 0,
|
190
|
+
HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS = 1,
|
191
|
+
HB_BUFFER_CLUSTER_LEVEL_CHARACTERS = 2,
|
192
|
+
HB_BUFFER_CLUSTER_LEVEL_DEFAULT = HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES
|
193
|
+
} hb_buffer_cluster_level_t;
|
194
|
+
|
195
|
+
void
|
196
|
+
hb_buffer_set_cluster_level (hb_buffer_t *buffer,
|
197
|
+
hb_buffer_cluster_level_t cluster_level);
|
188
198
|
|
199
|
+
hb_buffer_cluster_level_t
|
200
|
+
hb_buffer_get_cluster_level (hb_buffer_t *buffer);
|
189
201
|
|
190
202
|
#define HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT 0xFFFDu
|
191
203
|
|
@@ -221,6 +233,10 @@ hb_buffer_allocation_successful (hb_buffer_t *buffer);
|
|
221
233
|
void
|
222
234
|
hb_buffer_reverse (hb_buffer_t *buffer);
|
223
235
|
|
236
|
+
void
|
237
|
+
hb_buffer_reverse_range (hb_buffer_t *buffer,
|
238
|
+
unsigned int start, unsigned int end);
|
239
|
+
|
224
240
|
void
|
225
241
|
hb_buffer_reverse_clusters (hb_buffer_t *buffer);
|
226
242
|
|
@@ -253,6 +269,14 @@ hb_buffer_add_utf32 (hb_buffer_t *buffer,
|
|
253
269
|
unsigned int item_offset,
|
254
270
|
int item_length);
|
255
271
|
|
272
|
+
/* Allows only access to first 256 Unicode codepoints. */
|
273
|
+
void
|
274
|
+
hb_buffer_add_latin1 (hb_buffer_t *buffer,
|
275
|
+
const uint8_t *text,
|
276
|
+
int text_length,
|
277
|
+
unsigned int item_offset,
|
278
|
+
int item_length);
|
279
|
+
|
256
280
|
/* Like add_utf32 but does NOT check for invalid Unicode codepoints. */
|
257
281
|
void
|
258
282
|
hb_buffer_add_codepoints (hb_buffer_t *buffer,
|
@@ -299,7 +323,8 @@ typedef enum { /*< flags >*/
|
|
299
323
|
HB_BUFFER_SERIALIZE_FLAG_DEFAULT = 0x00000000u,
|
300
324
|
HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS = 0x00000001u,
|
301
325
|
HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS = 0x00000002u,
|
302
|
-
HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES = 0x00000004u
|
326
|
+
HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES = 0x00000004u,
|
327
|
+
HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS = 0x00000008u
|
303
328
|
} hb_buffer_serialize_flags_t;
|
304
329
|
|
305
330
|
typedef enum {
|
@@ -296,6 +296,13 @@ typedef enum
|
|
296
296
|
/*7.0*/ HB_SCRIPT_TIRHUTA = HB_TAG ('T','i','r','h'),
|
297
297
|
/*7.0*/ HB_SCRIPT_WARANG_CITI = HB_TAG ('W','a','r','a'),
|
298
298
|
|
299
|
+
/*8.0*/ HB_SCRIPT_AHOM = HB_TAG ('A','h','o','m'),
|
300
|
+
/*8.0*/ HB_SCRIPT_ANATOLIAN_HIEROGLYPHS = HB_TAG ('H','l','u','w'),
|
301
|
+
/*8.0*/ HB_SCRIPT_HATRAN = HB_TAG ('H','a','t','r'),
|
302
|
+
/*8.0*/ HB_SCRIPT_MULTANI = HB_TAG ('M','u','l','t'),
|
303
|
+
/*8.0*/ HB_SCRIPT_OLD_HUNGARIAN = HB_TAG ('H','u','n','g'),
|
304
|
+
/*8.0*/ HB_SCRIPT_SIGNWRITING = HB_TAG ('S','g','n','w'),
|
305
|
+
|
299
306
|
/* No script set. */
|
300
307
|
HB_SCRIPT_INVALID = HB_TAG_NONE,
|
301
308
|
|
@@ -80,12 +80,13 @@ hb_font_funcs_is_immutable (hb_font_funcs_t *ffuncs);
|
|
80
80
|
|
81
81
|
/* glyph extents */
|
82
82
|
|
83
|
+
/* Note that height is negative in coordinate systems that grow up. */
|
83
84
|
typedef struct hb_glyph_extents_t
|
84
85
|
{
|
85
|
-
hb_position_t x_bearing;
|
86
|
-
hb_position_t y_bearing;
|
87
|
-
hb_position_t width;
|
88
|
-
hb_position_t height;
|
86
|
+
hb_position_t x_bearing; /* left side of glyph from origin. */
|
87
|
+
hb_position_t y_bearing; /* top side of glyph from origin. */
|
88
|
+
hb_position_t width; /* distance from left to right side. */
|
89
|
+
hb_position_t height; /* distance from top to bottom side. */
|
89
90
|
} hb_glyph_extents_t;
|
90
91
|
|
91
92
|
|
@@ -292,7 +293,7 @@ hb_font_funcs_set_glyph_contour_point_func (hb_font_funcs_t *ffuncs,
|
|
292
293
|
*
|
293
294
|
*
|
294
295
|
*
|
295
|
-
* Since:
|
296
|
+
* Since: 0.9.2
|
296
297
|
**/
|
297
298
|
void
|
298
299
|
hb_font_funcs_set_glyph_name_func (hb_font_funcs_t *ffuncs,
|
@@ -308,7 +309,7 @@ hb_font_funcs_set_glyph_name_func (hb_font_funcs_t *ffuncs,
|
|
308
309
|
*
|
309
310
|
*
|
310
311
|
*
|
311
|
-
* Since:
|
312
|
+
* Since: 0.9.2
|
312
313
|
**/
|
313
314
|
void
|
314
315
|
hb_font_funcs_set_glyph_from_name_func (hb_font_funcs_t *ffuncs,
|