hb-ot-tag

hb-ot-tag

Functions

Types and Values

Description

Functions

hb_ot_tag_to_language ()

hb_language_t
hb_ot_tag_to_language (hb_tag_t tag);

Returns

.

[transfer none]

Since: 0.9.2


hb_ot_tag_to_script ()

hb_script_t
hb_ot_tag_to_script (hb_tag_t tag);

hb_ot_tags_from_script_and_language ()

void
hb_ot_tags_from_script_and_language (hb_script_t script,
                                     hb_language_t language,
                                     unsigned int *script_count,
                                     hb_tag_t *script_tags,
                                     unsigned int *language_count,
                                     hb_tag_t *language_tags);

Converts an hb_script_t and an hb_language_t to script and language tags.

Parameters

script

an hb_script_t to convert.

 

language

an hb_language_t to convert.

 

script_count

maximum number of script tags to retrieve (IN) and actual number of script tags retrieved (OUT).

[allow-none]

script_tags

array of size at least script_count to store the script tag results.

[out][allow-none]

language_count

maximum number of language tags to retrieve (IN) and actual number of language tags retrieved (OUT).

[allow-none]

language_tags

array of size at least language_count to store the language tag results.

[out][allow-none]

Since: 2.0.0


hb_ot_tags_to_script_and_language ()

void
hb_ot_tags_to_script_and_language (hb_tag_t script_tag,
                                   hb_tag_t language_tag,
                                   hb_script_t *script,
                                   hb_language_t *language);

Converts a script tag and a language tag to an hb_script_t and an hb_language_t.

Parameters

script_tag

a script tag

 

language_tag

a language tag

 

script

the hb_script_t corresponding to script_tag (OUT).

[allow-none]

language

the hb_language_t corresponding to script_tag and language_tag (OUT).

[allow-none]

Since: 2.0.0

Types and Values

HB_OT_MAX_TAGS_PER_LANGUAGE

#define HB_OT_MAX_TAGS_PER_LANGUAGE 3u

Since: 2.0.0


HB_OT_MAX_TAGS_PER_SCRIPT

#define HB_OT_MAX_TAGS_PER_SCRIPT 3u

Since: 2.0.0


HB_OT_TAG_DEFAULT_LANGUAGE

#define HB_OT_TAG_DEFAULT_LANGUAGE HB_TAG ('d', 'f', 'l', 't')

HB_OT_TAG_DEFAULT_SCRIPT

#define HB_OT_TAG_DEFAULT_SCRIPT HB_TAG ('D', 'F', 'L', 'T')