From dbfb45f099464dc1eb44c23d8a0928e408f2d259 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 15 Oct 2007 19:30:02 +0000 Subject: =?UTF-8?q?Bug=20486932=20=E2=80=93=20Apply=20vkrn=20GPOS=20featur?= =?UTF-8?q?e=20in=20vertical=20writing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2007-10-15 Behdad Esfahbod Bug 486932 – Apply vkrn GPOS feature in vertical writing * modules/basic/basic-fc.c (basic_engine_shape): Apply vkrn GPOS feature in vertical writing mode. Previously we had no GPOS feature for vertical mode. svn path=/trunk/; revision=2445 --- modules/basic/basic-fc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c index f01b28d4..7b2c2e78 100644 --- a/modules/basic/basic-fc.c +++ b/modules/basic/basic-fc.c @@ -114,6 +114,11 @@ static const PangoOTFeatureMap vertical_gsub_features[] = {"vert", PANGO_OT_ALL_GLYPHS} }; +static const PangoOTFeatureMap vertical_gpos_features[] = +{ + {"vkrn", PANGO_OT_ALL_GLYPHS} +}; + static void basic_engine_shape (PangoEngineShape *engine, PangoFont *font, @@ -186,8 +191,8 @@ basic_engine_shape (PangoEngineShape *engine, { desc.n_static_gsub_features = G_N_ELEMENTS (vertical_gsub_features); desc.static_gsub_features = vertical_gsub_features; - desc.n_static_gpos_features = 0; - desc.static_gpos_features = NULL; + desc.n_static_gpos_features = G_N_ELEMENTS (vertical_gpos_features); + desc.static_gpos_features = vertical_gpos_features; } else { -- cgit v1.2.1