Method

PangoOTInfofind_language

Declaration [src]

gboolean
pango_ot_info_find_language (
  PangoOTInfo* info,
  PangoOTTableType table_type,
  guint script_index,
  PangoOTTag language_tag,
  guint* language_index,
  guint* required_feature_index
)

Description [src]

Finds the index of a language and its required feature index.

If the language is not found, sets language_index to PANGO_OT_DEFAULT_LANGUAGE and the required feature of the default language system is returned in required_feature_index. For best compatibility with some fonts, also searches the language system tag ‘dflt’ before falling back to the default language system, but that is transparent to the user. The user can simply ignore the return value of this function to automatically fall back to the default language system.

Parameters

table_type PangoOTTableType
 

The table type to obtain information about.

script_index guint
 

The index of the script whose languages are searched.

language_tag PangoOTTag
 

The tag of the language to find.

language_index guint*
 

Location to store the index of the language.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
required_feature_index guint*
 

Location to store the required feature index of the language.

 The argument will be set by the function.
 The argument can be NULL.
 The instance takes ownership of the data, and is responsible for freeing it.

Return value

Returns: gboolean
 

TRUE if the language was found.