方法

PangoOT规则集maybe_add_feature

自:1.18

声明 [源]

gboolean
pango_ot_ruleset_maybe_add_feature (
  PangoOTRuleset* ruleset,
  PangoOTTableType table_type,
  PangoOTTag feature_tag,
  gulong property_bit
)

描述 [源]

这是一个便利函数,它首先尝试使用 pango_ot_info_find_feature() 和传递给 pango_ot_ruleset_new_for() 的规则集脚本和语言找到功能,如果找到了功能,就将其添加到规则集中。

如果 ruleset 不是使用 pango_ot_ruleset_new_for() 创建的,则此函数不执行任何操作。

自 1.18 开始提供

参数

table_type

类型: PangoOTTableType

要将功能添加到的表格类型。

feature_tag

类型: PangoOTTag

要添加的功能的标记。

property_bit

类型: gulong

用于此功能的属性位。用于识别应用此功能的光标,如果应用到所有光标,则使用 PANGO_OT_ALL_GLYPHS

返回值

类型: gboolean

如果找到并添加到规则集,则为 TRUE,否则为 FALSE