diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-05-10 23:56:11 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-05-10 23:56:11 +0000 |
commit | 426b1f1fbc453a6d42bcf3cc3acc53634d437219 (patch) | |
tree | f60eff04c7467fc50673824a0fa9539aa396c2b1 /modules/thai | |
parent | b2859fd1776ebf5aa55163f5bc630291d13c29c6 (diff) | |
download | pango-426b1f1fbc453a6d42bcf3cc3acc53634d437219.tar.gz |
Use PANGO_OT_DEFAULT_LANGUAGE and PANGO_OT_ALL_GLYPHS instead of hardcoded
2007-05-10 Behdad Esfahbod <behdad@gnome.org>
* 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
Diffstat (limited to 'modules/thai')
-rw-r--r-- | modules/thai/thai-ot.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/modules/thai/thai-ot.c b/modules/thai/thai-ot.c index e17cefd5..d947d1f7 100644 --- a/modules/thai/thai-ot.c +++ b/modules/thai/thai-ot.c @@ -34,9 +34,8 @@ 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)) { pango_ot_ruleset_add_feature (ruleset, PANGO_OT_TABLE_GSUB, feature_index, property_bit); @@ -55,7 +54,7 @@ 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)) { pango_ot_ruleset_add_feature (ruleset, PANGO_OT_TABLE_GPOS, feature_index, property_bit); @@ -101,10 +100,10 @@ thai_ot_get_ruleset (PangoFont *font) { n += maybe_add_gsub_feature (ruleset, info, script_index, FT_MAKE_TAG ('c','c','m','p'), - 0xFFFF); + PANGO_OT_ALL_GLYPHS); n += maybe_add_gsub_feature (ruleset, info, script_index, FT_MAKE_TAG ('l','i','g','a'), - 0xFFFF); + PANGO_OT_ALL_GLYPHS); } if (pango_ot_info_find_script (info, PANGO_OT_TABLE_GPOS, @@ -112,13 +111,13 @@ thai_ot_get_ruleset (PangoFont *font) { n += maybe_add_gpos_feature (ruleset, info, script_index, FT_MAKE_TAG ('k','e','r','n'), - 0xFFFF); + PANGO_OT_ALL_GLYPHS); n += maybe_add_gpos_feature (ruleset, info, script_index, FT_MAKE_TAG ('m','a','r','k'), - 0xFFFF); + PANGO_OT_ALL_GLYPHS); n += maybe_add_gpos_feature (ruleset, info, script_index, FT_MAKE_TAG ('m','k','m','k'), - 0xFFFF); + PANGO_OT_ALL_GLYPHS); } if (n > 0) @@ -174,10 +173,10 @@ lao_ot_get_ruleset (PangoFont *font) { n += maybe_add_gsub_feature (ruleset, info, script_index, FT_MAKE_TAG ('c','c','m','p'), - 0xFFFF); + PANGO_OT_ALL_GLYPHS); n += maybe_add_gsub_feature (ruleset, info, script_index, FT_MAKE_TAG ('l','i','g','a'), - 0xFFFF); + PANGO_OT_ALL_GLYPHS); } if (pango_ot_info_find_script (info, PANGO_OT_TABLE_GPOS, @@ -185,13 +184,13 @@ lao_ot_get_ruleset (PangoFont *font) { n += maybe_add_gpos_feature (ruleset, info, script_index, FT_MAKE_TAG ('k','e','r','n'), - 0xFFFF); + PANGO_OT_ALL_GLYPHS); n += maybe_add_gpos_feature (ruleset, info, script_index, FT_MAKE_TAG ('m','a','r','k'), - 0xFFFF); + PANGO_OT_ALL_GLYPHS); n += maybe_add_gpos_feature (ruleset, info, script_index, FT_MAKE_TAG ('m','k','m','k'), - 0xFFFF); + PANGO_OT_ALL_GLYPHS); } if (n > 0) |