summaryrefslogtreecommitdiff
path: root/pango/pango-ot-ruleset.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-03-31 12:28:09 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-03-31 12:28:09 +0000
commit9e6a19d45496ead8334bc24d89f5208da9e30e8b (patch)
tree0b965c31595c72772dd3424a0c27da0ed5a28ee0 /pango/pango-ot-ruleset.c
parent199ae3899424429340d77c908eacb921d4499aa1 (diff)
downloadpango-9e6a19d45496ead8334bc24d89f5208da9e30e8b.tar.gz
Convert pango/opentype to the new project called HarfBuzz.
2006-03-31 Behdad Esfahbod <behdad@gnome.org> Convert pango/opentype to the new project called HarfBuzz. * pango/opentype/*: Restructured. * pango/pango-ot-*: Updated to use HarfBuzz symbol names.
Diffstat (limited to 'pango/pango-ot-ruleset.c')
-rw-r--r--pango/pango-ot-ruleset.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/pango/pango-ot-ruleset.c b/pango/pango-ot-ruleset.c
index 03bcaf56..da876e35 100644
--- a/pango/pango-ot-ruleset.c
+++ b/pango/pango-ot-ruleset.c
@@ -120,7 +120,8 @@ pango_ot_ruleset_new (PangoOTInfo *info)
* @table_type: the table type to add a feature to.
* @feature_index: the index of the feature to add.
* @property_bit: the property bit to use for this feature. Used to identify
- * the glyphs that this feature should be applied to.
+ * the glyphs that this feature should be applied to, or
+ * %PANGO_OT_ALL_GLYPHS if it should be applied to all glyphs.
*
* Adds a feature to the ruleset.
**/
@@ -157,7 +158,7 @@ pango_ot_ruleset_substitute (PangoOTRuleset *ruleset,
{
unsigned int i;
- TTO_GSUB gsub = NULL;
+ HB_GSUB gsub = NULL;
g_return_if_fail (PANGO_OT_IS_RULESET (ruleset));
@@ -173,15 +174,15 @@ pango_ot_ruleset_substitute (PangoOTRuleset *ruleset,
gsub = pango_ot_info_get_gsub (ruleset->info);
if (gsub)
- TT_GSUB_Clear_Features (gsub);
+ HB_GSUB_Clear_Features (gsub);
else
return;
}
- TT_GSUB_Add_Feature (gsub, rule->feature_index, rule->property_bit);
+ HB_GSUB_Add_Feature (gsub, rule->feature_index, rule->property_bit);
}
- TT_GSUB_Apply_String (gsub, buffer->buffer);
+ HB_GSUB_Apply_String (gsub, buffer->buffer);
}
/**
@@ -200,7 +201,7 @@ pango_ot_ruleset_position (PangoOTRuleset *ruleset,
{
unsigned int i;
- TTO_GPOS gpos = NULL;
+ HB_GPOS gpos = NULL;
g_return_if_fail (PANGO_OT_IS_RULESET (ruleset));
@@ -216,15 +217,15 @@ pango_ot_ruleset_position (PangoOTRuleset *ruleset,
gpos = pango_ot_info_get_gpos (ruleset->info);
if (gpos)
- TT_GPOS_Clear_Features (gpos);
+ HB_GPOS_Clear_Features (gpos);
else
return;
}
- TT_GPOS_Add_Feature (gpos, rule->feature_index, rule->property_bit);
+ HB_GPOS_Add_Feature (gpos, rule->feature_index, rule->property_bit);
}
- if (TT_GPOS_Apply_String (ruleset->info->face, gpos, 0, buffer->buffer,
+ if (HB_GPOS_Apply_String (ruleset->info->face, gpos, 0, buffer->buffer,
FALSE /* enable device-dependant values */,
buffer->rtl) == FT_Err_Ok)
buffer->applied_gpos = TRUE;