archrelease: copy trunk to extra-x86_64
[arch-packages.git] / pangox-compat / trunk / 0001-Re-add-pango_x_get_shaper_map-it-is-still-used-in-th.patch
blobde85c1719dd175b2502dffc3430000d80f874d79
1 From bd0fcfbd2f8f493e96955c1edd8a791de1e6568a Mon Sep 17 00:00:00 2001
2 From: Jan de Groot <jgc@archlinux.org>
3 Date: Sun, 19 Feb 2017 07:57:57 +0000
4 Subject: [PATCH] Re-add pango_x_get_shaper_map, it is still used in the
5 fallback code
7 ---
8 pangox.c | 15 +++++++++++++++
9 1 file changed, 15 insertions(+)
11 diff --git a/pangox.c b/pangox.c
12 index 0a66cc9..1e6efc6 100644
13 --- a/pangox.c
14 +++ b/pangox.c
15 @@ -1344,6 +1344,21 @@ pango_x_font_describe (PangoFont *font)
16 return NULL;
19 +PangoMap *
20 +pango_x_get_shaper_map (PangoLanguage *language)
22 + static guint engine_type_id = 0;
23 + static guint render_type_id = 0;
25 + if (engine_type_id == 0)
26 + {
27 + engine_type_id = g_quark_from_static_string (PANGO_ENGINE_TYPE_SHAPE);
28 + render_type_id = g_quark_from_static_string (PANGO_RENDER_TYPE_X);
29 + }
31 + return pango_find_map (language, engine_type_id, render_type_id);
34 static PangoCoverage *
35 pango_x_font_get_coverage (PangoFont *font,
36 PangoLanguage *language)
37 --
38 2.11.1