方法
PangoOTInfofind_feature
[−]
声明 [源代码]
gboolean
pango_ot_info_find_feature (
PangoOTInfo* info,
PangoOTTableType table_type,
PangoOTTag feature_tag,
guint script_index,
guint language_index,
guint* feature_index
)
[−]
描述 [源代码]
查找特性的索引。
如果未找到特性,将feature_index
设置为PANGO_OT_NO_FEATURE,这在传递给pango_ot_ruleset_add_feature()
等函数时是安全的。
将来,这可能会将feature_index
设置为特定值,如果在pango_ot_ruleset_add_feature()
中使用,会让Pango根据Unicode属性和数据合成所请求的特性。但是,在这种情况下函数仍然会返回FALSE
。因此,用户可能需要在某些情况下忽略这个函数的返回值。
[−]
参数
table_type
-
类型:
PangoOTTableType
要获取其信息的表类型。
feature_tag
-
类型:
PangoOTTag
要查找特性的标记。
script_index
-
类型:
guint
脚本的索引。
language_index
-
类型:
guint
要搜索的特性所在的语种的索引,或使用脚本的默认语言,请使用
PANGO_OT_DEFAULT_LANGUAGE
。 feature_index
-
类型:
guint*
存储特性索引的位置。
该参数将由函数设置。 该参数可以是 NULL
。