Name
OpenType Font Handling --
Synopsis
typedef PangoOTTag;
struct PangoOTInfo;
struct PangoOTRuleset;
enum PangoOTTableType;
gboolean pango_ot_info_find_script (PangoOTInfo *info,
PangoOTTableType table_type,
PangoOTTag script_tag,
guint *script_index);
gboolean pango_ot_info_find_language (PangoOTInfo *info,
PangoOTTableType table_type,
guint script_index,
PangoOTTag language_tag,
guint *language_index,
guint *required_feature_index);
gboolean pango_ot_info_find_feature (PangoOTInfo *info,
PangoOTTableType table_type,
PangoOTTag feature_tag,
guint script_index,
guint language_index,
guint *feature_index);
PangoOTTag* pango_ot_info_list_scripts (PangoOTInfo *info,
PangoOTTableType table_type);
PangoOTTag* pango_ot_info_list_languages (PangoOTInfo *info,
PangoOTTableType table_type,
guint script_index,
PangoOTTag language_tag);
PangoOTTag* pango_ot_info_list_features (PangoOTInfo *info,
PangoOTTableType table_type,
PangoOTTag tag,
guint script_index,
guint language_index);
PangoOTRuleset* pango_ot_ruleset_new (PangoOTInfo *info);
void pango_ot_ruleset_add_feature (PangoOTRuleset *ruleset,
PangoOTTableType table_type,
guint feature_index,
gulong property_bit);
void pango_ot_ruleset_shape (PangoOTRuleset *ruleset,
PangoGlyphString *glyphs,
gulong *properties);
|
Details
PangoOTTag
typedef guint32 PangoOTTag;
|
The PangoOTTag typedef is used to represent TrueType and OpenType
four letter tags inside Pango. Use the FT_MAKE_TAG() macro
defined in the FreeType2 header freetype/freetype.h to
create PangoOTTags manually.
struct PangoOTInfo
The PangoOTInfo struct contains the various
tables associated with an OpenType font. It contains only private fields and
should only be accessed via the pango_ot_info_* functions
which are documented below. To obtain a PangoOTInfo,
use pango_ot_info_new().
enum PangoOTTableType
typedef enum
{
PANGO_OT_TABLE_GSUB,
PANGO_OT_TABLE_GPOS
} PangoOTTableType;
|
The PangoOTTableType enumeration values are used to
identify the various OpenType tables in the
pango_ot_info_* functions.
pango_ot_info_find_script ()
Finds the index of a script.
pango_ot_info_find_language ()
Finds the index of a language and its required feature index.
pango_ot_info_find_feature ()
Finds the index of a feature.
pango_ot_info_list_scripts ()
Obtains the list of available scripts.
pango_ot_info_list_languages ()
Obtains the list of available languages for a given script.
pango_ot_info_list_features ()
Obtains the list of features for the given language of the given script.
pango_ot_ruleset_new ()
Creates a new PangoOTRuleset for the given OpenType info.
pango_ot_ruleset_add_feature ()
Adds a feature to the ruleset. See pango_ot_ruleset_shape()
for an explanation of property_bit.
pango_ot_ruleset_shape ()
Shapes a string of glyphs with the given properties according to ruleset.