Gjsify LogoGjsify Logo

The PangoOTRuleset structure holds all the information needed to build a complete PangoOTRuleset from an OpenType font. The main use of this struct is to act as the key for a per-font hash of rulesets. The user populates a ruleset description and gets the ruleset using pango_ot_ruleset_get_for_description() or create a new one using pango_ot_ruleset_new_from_description().

record

Hierarchy

  • RulesetDescription

Index

Constructors

Properties

language: Pango.Language

a PangoLanguage

field
n_other_features: number

length of other_features, or 0.

field
n_static_gpos_features: number

length of static_gpos_features, or 0.

field
n_static_gsub_features: number

length of static_gsub_features, or 0.

field
other_features: FeatureMap

map of extra features to add to both GSUB and GPOS. Unlike the static maps, this pointer need not live beyond the life of function calls taking this struct.

field
script: Pango.Script

a PangoScript

field
static_gpos_features: FeatureMap

static map of GPOS features

field
static_gsub_features: FeatureMap

static map of GSUB features

field
name: string

Methods

  • Creates a copy of desc, which should be freed with [methodPangoOT.RulesetDescription.free].

    Primarily used internally by [funcPangoOT.Ruleset.get_for_description] to cache rulesets for ruleset descriptions.

    Returns RulesetDescription

  • Compares two ruleset descriptions for equality.

    Two ruleset descriptions are considered equal if the rulesets they describe are provably identical. This means that their script, language, and all feature sets should be equal.

    For static feature sets, the array addresses are compared directly, while for other features, the list of features is compared one by one.(Two ruleset descriptions may result in identical rulesets being created, but still compare %FALSE.)

    Parameters

    Returns boolean

  • free(): void
  • hash(): number
  • Computes a hash of a PangoOTRulesetDescription structure suitable to be used, for example, as an argument to g_hash_table_new().

    Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method