结构

自适应规则集描述

自 1.18 起存在

描述 [源]

struct PangoOTRulesetDescription {
  PangoScript script;
  PangoLanguage* language;
  const PangoOTFeatureMap* static_gsub_features;
  guint n_static_gsub_features;
  const PangoOTFeatureMap* static_gpos_features;
  guint n_static_gpos_features;
  const PangoOTFeatureMap* other_features;
  guint n_other_features;
}

PangoOTRuleset 结构体包含构建完整的 PangoOTRuleset 所需的所有信息,从 OpenType 字体中构建。此结构的主要用途是作为按照每个字体的规则集哈希的关键。用户填写规则集描述,并使用 pango_ot_ruleset_get_for_description() 或使用 pango_ot_ruleset_new_from_description() 创建一个新的来获取规则集。

结构成员
脚本

PangoScript

语言

PangoLanguage

static_gsub_features

GSUB 功能的静态映射。

n_static_gsub_features

static_gsub_features 的长度,或 0。

static_gpos_features

GPOS 功能的静态映射。

n_static_gpos_features

static_gpos_features 的长度,或 0。

other_features

添加到 GSUBGPOS 的额外功能的映射。与静态映射不同,此指针不需要生存到使用此结构的函数调用的生命周期。

n_other_features

other_features 的长度,或 0。

自 1.18 可用

实例方法

pango_ot_ruleset_description_copy

创建 desc 的副本,应使用 pango_ot_ruleset_description_free() 释放。

自 1.18 起存在

pango_ot_ruleset_description_equal

比较两个规则集描述以确定是否相等。

自 1.18 起存在

pango_ot_ruleset_description_free

释放由 pango_ot_ruleset_description_copy() 分配的规则集描述。

自 1.18 起存在

pango_ot_ruleset_description_hash

计算适当的 PangoOTRulesetDescription 结构哈希,例如,用作 g_hash_table_new() 的参数。

自 1.18 起存在