Accepting request 624118 from home:iznogood
- Update to version 1.42.2: + Require harfbuzz 1.4.2. + Restore scaling of CoreText fonts. + Speed up font face enumeration. + Add a pango-list utility. - Drop pango-use-non_deprecated-libthai-API.patch: Fixed upstream. OBS-URL: https://build.opensuse.org/request/show/624118 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pango?expand=0&rev=190
This commit is contained in:
parent
09d503113c
commit
4d7c012935
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:915a6756b298578ff27c7a6393f8c2e62e6e382f9411f2504d7af1a13c7bce32
|
||||
size 826776
|
3
pango-1.42.2.tar.xz
Normal file
3
pango-1.42.2.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b1e416b4d40416ef6c8224cf146492b86848703264ba88f792290992cf3ca1e2
|
||||
size 827364
|
@ -1,129 +0,0 @@
|
||||
From 63e1fc9b23b4f0e8eaacd151ad39403eaa2b48ef Mon Sep 17 00:00:00 2001
|
||||
From: Khaled Hosny <khaledhosny@eglug.org>
|
||||
Date: Wed, 11 Apr 2018 13:52:07 +0200
|
||||
Subject: Use non-deprecated libthai API when available
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
I’m assuming the new API is thread-safe as claimed.
|
||||
---
|
||||
configure.ac | 4 ++++
|
||||
meson.build | 4 ++++
|
||||
pango/break-thai.c | 16 +++++++++++-----
|
||||
3 files changed, 19 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index be20dce..5e879a8 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -487,6 +487,10 @@ have_libthai=false
|
||||
PKG_CHECK_MODULES(LIBTHAI, libthai >= $LIBTHAI_REQUIRED_VERSION, have_libthai=true, :)
|
||||
if $have_libthai; then
|
||||
AC_DEFINE(HAVE_LIBTHAI, 1, [Whether libthai is available])
|
||||
+ pango_save_libs=$LIBS
|
||||
+ LIBS="$LIBS $LIBTHAI_LIBS"
|
||||
+ AC_CHECK_FUNCS(th_brk_find_breaks)
|
||||
+ LIBS=$pango_save_libs
|
||||
fi
|
||||
|
||||
#
|
||||
diff --git a/meson.build b/meson.build
|
||||
index a00d4b0..9a5a4c7 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -216,6 +216,10 @@ thai_dep = dependency('libthai', version: libthai_req_version, required: false)
|
||||
if thai_dep.found()
|
||||
pango_conf.set('HAVE_LIBTHAI', 1)
|
||||
pango_deps += thai_dep
|
||||
+
|
||||
+ if cc.has_function('th_brk_find_breaks', dependencies: thai_dep)
|
||||
+ pango_conf.set('HAVE_TH_BRK_FIND_BREAKS', 1)
|
||||
+ endif
|
||||
endif
|
||||
|
||||
# These are for the various .pc files so that things will link
|
||||
diff --git a/pango/break-thai.c b/pango/break-thai.c
|
||||
index c9bf3e8..4a6c427 100644
|
||||
--- a/pango/break-thai.c
|
||||
+++ b/pango/break-thai.c
|
||||
@@ -27,12 +27,9 @@
|
||||
#include <thai/thwchar.h>
|
||||
#include <thai/thbrk.h>
|
||||
|
||||
-/* TODO
|
||||
- * LibThai 0.1.23 claims to be thread-safe.
|
||||
- * Check that and avoid locking?
|
||||
- * http://linux.thai.net/node/286
|
||||
- */
|
||||
+#ifndef HAVE_TH_BRK_FIND_BREAKS
|
||||
G_LOCK_DEFINE_STATIC (th_brk);
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* tis_text is assumed to be large enough to hold the converted string,
|
||||
@@ -67,6 +64,9 @@ break_thai (const char *text,
|
||||
thchar_t *tis_text;
|
||||
int *brk_pnts;
|
||||
int cnt;
|
||||
+#ifdef HAVE_TH_BRK_FIND_BREAKS
|
||||
+ ThBrk* brk;
|
||||
+#endif
|
||||
|
||||
cnt = pango_utf8_strlen (text, len) + 1;
|
||||
|
||||
@@ -82,9 +82,15 @@ break_thai (const char *text,
|
||||
|
||||
/* find line break positions */
|
||||
|
||||
+#ifdef HAVE_TH_BRK_FIND_BREAKS
|
||||
+ brk = th_brk_new(NULL);
|
||||
+ len = th_brk_find_breaks(brk, tis_text, brk_pnts, cnt);
|
||||
+ th_brk_delete(brk);
|
||||
+#else
|
||||
G_LOCK (th_brk);
|
||||
len = th_brk (tis_text, brk_pnts, cnt);
|
||||
G_UNLOCK (th_brk);
|
||||
+#endif
|
||||
for (cnt = 0; cnt < len; cnt++)
|
||||
if (attrs[brk_pnts[cnt]].is_char_break)
|
||||
{
|
||||
--
|
||||
cgit v0.12
|
||||
|
||||
|
||||
From 4b16a0bf5c9795fe57255d5594a27c3cef634202 Mon Sep 17 00:00:00 2001
|
||||
From: Khaled Hosny <khaledhosny@eglug.org>
|
||||
Date: Sun, 8 Apr 2018 00:56:06 +0200
|
||||
Subject: Remove stray letters in NEWS
|
||||
|
||||
Introduced in 46f8583c87c45b304ac98d06005c49df67d53b07
|
||||
---
|
||||
NEWS | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/NEWS b/NEWS
|
||||
index 1319906..76605f5 100644
|
||||
--- a/NEWS
|
||||
+++ b/NEWS
|
||||
@@ -47,7 +47,7 @@ Overview of changes between 1.40.9 and 1.40.10
|
||||
- Apply gravity across spans in markup (#784243)
|
||||
- Support variation selectors for shaping
|
||||
- CoreText: Rely on CGFont for scaling (#782393)
|
||||
-U- Fix grapheme breaks and backspacing for Emoji
|
||||
+- Fix grapheme breaks and backspacing for Emoji
|
||||
|
||||
Overview of changes between 1.40.8 and 1.40.9
|
||||
=============================================
|
||||
@@ -145,7 +145,7 @@ Overview of changes between 1.37.1 and 1.37.2
|
||||
=============================================
|
||||
- Don't use hb_glib_get_unicode_funcs
|
||||
- Warning fixes
|
||||
-I
|
||||
+
|
||||
Overview of changes between 1.37.0 and 1.37.1
|
||||
=============================================
|
||||
- Add attributes for OpenType font features (#738505)
|
||||
--
|
||||
cgit v0.12
|
||||
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 19 15:40:47 UTC 2018 - bjorn.lie@gmail.com
|
||||
|
||||
- Update to version 1.42.2:
|
||||
+ Require harfbuzz 1.4.2.
|
||||
+ Restore scaling of CoreText fonts.
|
||||
+ Speed up font face enumeration.
|
||||
+ Add a pango-list utility.
|
||||
- Drop pango-use-non_deprecated-libthai-API.patch: Fixed upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 24 21:14:27 UTC 2018 - bjorn.lie@gmail.com
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: pango
|
||||
Version: 1.42.1
|
||||
Version: 1.42.2
|
||||
Release: 0
|
||||
Summary: Library for Layout and Rendering of Text
|
||||
License: LGPL-2.1-or-later
|
||||
@ -26,8 +26,7 @@ URL: http://www.pango.org/
|
||||
Source0: https://download.gnome.org/sources/pango/1.42/%{name}-%{version}.tar.xz
|
||||
Source2: macros.pango
|
||||
Source99: baselibs.conf
|
||||
# PATCH-FIX-UPSTREAM pango-use-non_deprecated-libthai-API.patch -- Use non-deprecated libthai API when available
|
||||
Patch0: pango-use-non_deprecated-libthai-API.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: help2man
|
||||
@ -40,7 +39,7 @@ BuildRequires: pkgconfig(fribidi) >= 0.19.7
|
||||
BuildRequires: pkgconfig(glib-2.0) >= 2.33.12
|
||||
BuildRequires: pkgconfig(gobject-2.0) >= 2.33.12
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||||
BuildRequires: pkgconfig(harfbuzz) >= 1.2.3
|
||||
BuildRequires: pkgconfig(harfbuzz) >= 1.4.2
|
||||
BuildRequires: pkgconfig(libthai) >= 0.1.9
|
||||
BuildRequires: pkgconfig(xft) >= 2.0.0
|
||||
BuildRequires: pkgconfig(xrender)
|
||||
@ -120,7 +119,6 @@ to develop applications that require these.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%meson \
|
||||
@ -153,6 +151,7 @@ rm -rf %{buildroot}%{_datadir}/installed-tests
|
||||
%{_libdir}/girepository-1.0/PangoXft-1.0.typelib
|
||||
|
||||
%files tools
|
||||
%{_bindir}/pango-list
|
||||
%{_bindir}/pango-view
|
||||
%{_mandir}/man1/pango-view.1%{ext_man}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user