Constructor

PangoOT.Ruleset.new_from_description

Declaration [src]

PangoOTRuleset*
pango_ot_ruleset_new_from_description (
  PangoOTInfo* info,
  const PangoOTRulesetDescription* desc
)

Description [src]

Creates a new PangoOTRuleset for the given OpenType info and matching the given ruleset description.

This is a convenience function that calls pango_ot_ruleset_new_for() and adds the static GSUB/GPOS features to the resulting ruleset, followed by adding other features to both GSUB and GPOS.

The static feature map members of desc should be alive as long as info is.

Available since:1.18

Parameters

info PangoOTInfo
 

a PangoOTInfo

 The data is owned by the caller of the function
desc PangoOTRulesetDescription
 

a PangoOTRulesetDescription

 The data is owned by the caller of the function

Return value

Returns: PangoOTRuleset

the newly allocated PangoOTRuleset

The caller of the function takes ownership of the data, and is responsible for freeing it