update to pango-1.48.8
authorJonathan Boeing <jonathan@claws-mail.org>
Sun, 15 Aug 2021 08:05:58 +0000 (01:05 -0700)
committerJonathan Boeing <jonathan@claws-mail.org>
Tue, 17 Aug 2021 05:29:30 +0000 (22:29 -0700)
also add a patch to fix font spacing issues introduced in 1.48.6

packages/packages.current
patches/pango/01-rounding.patch [new file with mode: 0644]

index 9e9069ba406ec9f8cf08a717d3046a82a595dc0f..7d71f582cbd551e7921a585095c6ab9e5783d775 100644 (file)
@@ -41,7 +41,7 @@ libwebp,1.2.0,file,https://storage.googleapis.com/downloads.webmproject.org/rele
 libxml2,2.9.12,file,ftp://xmlsoft.org/libxml2/libxml2-2.9.12.tar.gz,c8d6681e38c56f172892c85ddc0852e1fd4b53b4209e7f4ebf17f7e2eae71d92,,
 libxslt,1.1.34,file,ftp://xmlsoft.org/libxml2/libxslt-1.1.34.tar.gz,98b1bd46d6792925ad2dfe9a87452ea2adebf69dcb9919ffd55bf926a7f93f7f,,
 nettle,3.7.3,file,https://ftp.gnu.org/pub/gnu/nettle/nettle-3.7.3.tar.gz,661f5eb03f048a3b924c3a8ad2515d4068e40f67e774e8a26827658007e3bcf0,,
-pango,1.48.7,file,https://download.gnome.org/sources/pango/1.48/pango-1.48.7.tar.xz,28a82f6a6cab60aa3b75a90f04197ead2d311fa8fe8b7bfdf8666e2781d506dc,,
+pango,1.48.8,file,https://download.gnome.org/sources/pango/1.48/pango-1.48.8.tar.xz,009d9d830ecbe11911d6637e48eec1c51390d3d12eb286035ef7c641f3c87410,,
 pixman,0.40.0,file,https://cairographics.org/releases/pixman-0.40.0.tar.gz,6d200dec3740d9ec4ec8d1180e25779c00bc749f94278c8b9021f5534db223fc,,
 regex,20210702,git,git://git.savannah.gnu.org/gnulib.git,7769c80aaa6b75c4fc4f2cfe62f6bf46291dabfef9e11dd42bd9656dbbd7a9af,master,901694b904cd861adc2529b2e05a3fb33f9b534f
 sqlite,3.36.0,file,https://sqlite.org/2021/sqlite-autoconf-3360000.tar.gz,bd90c3eb96bee996206b83be7065c9ce19aef38c3f4fb53073ada0d0b69bbce3,,
diff --git a/patches/pango/01-rounding.patch b/patches/pango/01-rounding.patch
new file mode 100644 (file)
index 0000000..bb721eb
--- /dev/null
@@ -0,0 +1,41 @@
+From df0217a3f46c77b743fa1ae1ddfc2bb321ba91e8 Mon Sep 17 00:00:00 2001
+From: Chun-wei Fan <fanchunwei@src.gnome.org>
+Date: Mon, 9 Aug 2021 16:22:22 +0800
+Subject: [PATCH] pango/shape.c: Use the former rounding code as needed
+
+The careful rounding code that was brought back as a result of commit
+d4356779 only had effect if we are using a backend that supported font
+hinting, so on other backends, use the former rounding code that was
+dropped in favor of the careful rounding code that unfortunately did not
+apply for all backends.
+
+Should fix #578.
+---
+ pango/shape.c | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/pango/shape.c b/pango/shape.c
+index f8ac3691..aed028b7 100644
+--- a/pango/shape.c
++++ b/pango/shape.c
+@@ -341,5 +341,17 @@ pango_shape_with_flags (const gchar         *item_text,
+     #undef HINT
+             }
+         }
++      else
++        {
++          for (i = 0; i < glyphs->num_glyphs; i++)
++            {
++              glyphs->glyphs[i].geometry.width =
++                PANGO_UNITS_ROUND (glyphs->glyphs[i].geometry.width);
++              glyphs->glyphs[i].geometry.x_offset =
++                PANGO_UNITS_ROUND (glyphs->glyphs[i].geometry.x_offset);
++              glyphs->glyphs[i].geometry.y_offset =
++                PANGO_UNITS_ROUND (glyphs->glyphs[i].geometry.y_offset);
++            }
++        }
+     }
+ }
+-- 
+GitLab
+