summaryrefslogtreecommitdiff
path: root/pango/pango-ot-ruleset.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-05-18 17:43:49 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-05-18 17:43:49 -0400
commita483de8e2774ecf9bc281b46fdd21b4d58ed61a2 (patch)
tree3d573a70a8842225950dab37a228e738f9040edb /pango/pango-ot-ruleset.c
parent68f88f1ca8e7057c8830c1c60a369e588745ebdc (diff)
downloadpango-a483de8e2774ecf9bc281b46fdd21b4d58ed61a2.tar.gz
Switch Pango to new, defunt, GPOS
Diffstat (limited to 'pango/pango-ot-ruleset.c')
-rw-r--r--pango/pango-ot-ruleset.c32
1 files changed, 4 insertions, 28 deletions
diff --git a/pango/pango-ot-ruleset.c b/pango/pango-ot-ruleset.c
index 23f37cb3..b5e27959 100644
--- a/pango/pango-ot-ruleset.c
+++ b/pango/pango-ot-ruleset.c
@@ -504,39 +504,15 @@ void
pango_ot_ruleset_position (const PangoOTRuleset *ruleset,
PangoOTBuffer *buffer)
{
- unsigned int i;
-
- HB_GPOS gpos = NULL;
-
g_return_if_fail (PANGO_IS_OT_RULESET (ruleset));
g_return_if_fail (ruleset->info != NULL);
- for (i = 0; i < ruleset->rules->len; i++)
- {
- PangoOTRule *rule = &g_array_index (ruleset->rules, PangoOTRule, i);
-
- if (rule->table_type != PANGO_OT_TABLE_GPOS)
- continue;
-
- if (!gpos)
- {
- gpos = pango_ot_info_get_gpos (ruleset->info);
-
- if (gpos)
- HB_GPOS_Clear_Features (gpos);
- else
- return;
- }
-
- HB_GPOS_Add_Feature (gpos, rule->feature_index, rule->property_bit);
- }
-
- if (HB_GPOS_Apply_String (ruleset->info->face, gpos, 0, buffer->buffer,
- FALSE /* enable device-dependant values */,
- buffer->rtl) == HB_Err_Ok)
- buffer->applied_gpos = TRUE;
+ _pango_ot_info_position (ruleset->info,
+ ruleset,
+ buffer);
}
+
/* ruleset descriptions */
/**