方法

PangoOT规则集maybe_add_features

since: 1.18

声明 [源]

guint
pango_ot_ruleset_maybe_add_features (
  PangoOTRuleset* ruleset,
  PangoOTTableType table_type,
  const PangoOTFeatureMap* features,
  guint n_features
)

描述 [源]

这是一个便利函数,对于特征映射数组 features 中的每个特征,使用 PANGO_OT_TAG_MAKE() 将特征名称转换为 PangoOTTag 特征标签,并对其调用 pango_ot_ruleset_maybe_add_feature()

可用以来:1.18

参数

table_type

类型: PangoOTTableType

添加特征的表类型。

features

类型: PangoOTFeatureMap

添加的特征名称和属性位的数组。

数据由该方法调用者拥有。
n_features

类型: guint

features 数组中特征记录的数量。

返回值

类型: guint

ruleset 中找到并添加的特征数量。