From 426b1f1fbc453a6d42bcf3cc3acc53634d437219 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 10 May 2007 23:56:11 +0000 Subject: Use PANGO_OT_DEFAULT_LANGUAGE and PANGO_OT_ALL_GLYPHS instead of hardcoded 2007-05-10 Behdad Esfahbod * modules/arabic/arabic-fc.c (maybe_add_gsub_feature), (maybe_add_gpos_feature), (get_ruleset): * modules/basic/basic-fc.c (get_ruleset): * modules/hebrew/hebrew-fc.c (maybe_add_gsub_feature), (maybe_add_gpos_feature), (get_ruleset): * modules/indic/indic-fc.c (maybe_add_GSUB_feature), (maybe_add_GPOS_feature): * modules/khmer/khmer-fc.c (maybe_add_GSUB_feature), (maybe_add_GPOS_feature): * modules/syriac/syriac-fc.c (maybe_add_gsub_feature), (maybe_add_gpos_feature), (get_ruleset): * modules/thai/thai-ot.c (maybe_add_gsub_feature), (maybe_add_gpos_feature), (thai_ot_get_ruleset), (lao_ot_get_ruleset): * modules/tibetan/tibetan-fc.c (maybe_add_GSUB_feature), (maybe_add_GPOS_feature): Use PANGO_OT_DEFAULT_LANGUAGE and PANGO_OT_ALL_GLYPHS instead of hardcoded 0xFFFF. svn path=/trunk/; revision=2282 --- modules/indic/indic-fc.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'modules/indic') diff --git a/modules/indic/indic-fc.c b/modules/indic/indic-fc.c index 5d81c6c4..42a31bc9 100644 --- a/modules/indic/indic-fc.c +++ b/modules/indic/indic-fc.c @@ -140,14 +140,9 @@ maybe_add_GSUB_feature (PangoOTRuleset *ruleset, { guint feature_index; - /* 0xffff == default language system */ if (pango_ot_info_find_feature (info, PANGO_OT_TABLE_GSUB, - feature_tag, script_index, 0xffff, &feature_index)) + feature_tag, script_index, PANGO_OT_DEFAULT_LANGUAGE, &feature_index)) { - /* - printf("Added GSUB feature '%c%c%c%c' = %8.8X\n", feature_tag>>24, feature_tag>>16&0xFF, feature_tag>>8&0xFF, feature_tag&0xFF, property_bit); - */ - pango_ot_ruleset_add_feature (ruleset, PANGO_OT_TABLE_GSUB, feature_index, property_bit); } @@ -163,12 +158,8 @@ maybe_add_GPOS_feature (PangoOTRuleset *ruleset, guint feature_index; if (pango_ot_info_find_feature (info, PANGO_OT_TABLE_GPOS, - feature_tag,script_index, 0xffff, &feature_index)) + feature_tag,script_index, PANGO_OT_DEFAULT_LANGUAGE, &feature_index)) { - /* - printf("Added GPOS feature '%c%c%c%c' = %8.8X\n", feature_tag>>24, feature_tag>>16&0xFF, feature_tag>>8&0xFF, feature_tag&0xFF, property_bit); - */ - pango_ot_ruleset_add_feature (ruleset, PANGO_OT_TABLE_GPOS, feature_index, property_bit); } -- cgit v1.2.1