Import line: | Pango = imports.gi.Pango; |
GIR File: | Pango-1.0.gir |
C documentation: | Pango.Language |
Struct : | Language |
Show / Hide Inherited methods, properties and signals |
None |
Method / Constructor | Defined By | |
---|---|---|
get_sample_string
()
:
String
Get a string that is representative of the characters needed to render a particular language.
Get a string that is representative of the characters needed to render a particular language. The sample text may be a pangram, but is not necessarily. It is chosen to be demonstrative of normal text in the language, as well as exposing font feature requirements unique to the language. It is suitable for use as sample text in a font selection dialog. If language is NULL, the default language as found by pango_language_get_default() is used. If Pango does not have a sample string for language, the classic "The quick brown fox..." is returned. This can be detected by comparing the returned pointer value to that returned for (non-existent) language code "xx". That is, compare to:
|
Pango.Language | |
get_scripts
(Object out_values)
:
Pango.Script
Determines the scripts used to to write language.
Determines the scripts used to to write language. If nothing is known about the language tag language, or if language is NULL, then NULL is returned. The list of scripts returned starts with the script that the language uses most and continues to the one it uses least. The value num_script points at will be set to the number of scripts in the returned array (or zero if NULL is returned). Most languages use only one script for writing, but there are some that use two (Latin and Cyrillic for example), and a few use three (Japanese for example). Applications should not make any assumptions on the maximum number of scripts returned though, except that it is positive if the return value is not NULL, and it is a small number. The pango_language_includes_script() function uses this function internally. number of entries in the array stored in num_scripts, or NULL if Pango does not have any information about this particular language tag (also the case if language is NULL). The returned array is owned by Pango and should not be modified or freed.
|
Pango.Language | |
Determines if script is one of the scripts used to write language.
Determines if script is one of the scripts used to write language. The returned value is conservative; if nothing is known about the language tag language, TRUE will be returned, since, as far as Pango knows, This routine is used in Pango's itemization process when determining if a supplied language tag is relevant to a particular section of text. It probably is not useful for applications in most circumstances. This function uses pango_language_get_scripts() internally. to write language or if nothing is known about language (including the case that language is NULL), FALSE otherwise.
|
Pango.Language | |
Checks if a language tag matches one of the elements in a list of language ranges.
Checks if a language tag matches one of the elements in a list of language ranges. A language tag is considered to match a range in the list if the range is '*', the range is exactly the tag, or the range is a prefix of the tag, and the character after it in the tag is '-'.
|
Pango.Language | |
to_string
()
:
String
Gets the RFC-3066 format string representing the given language tag.
Gets the RFC-3066 format string representing the given language tag. Pango and should not be freed.
|
Pango.Language |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk
Method |
Gtk.get_default_language
()
:
Pango.Language
Returns the PangoLanguage for the default language currently in effect.
|
Gtk.TextIter
Method |
get_language
()
:
Pango.Language
A convenience wrapper around gtk_text_iter_get_attributes (), which returns the language in effect at iter.
|
Pango
Method |
Pango.get_log_attrs
(String text, Number length, Number level, Language language, LogAttr log_attrs, Number attrs_len)
:
none
Computes a PangoLogAttr for each character in text.
|
Pango
Method |
Take a RFC-3066 format language tag as a string and convert it to a PangoLanguage pointer that can be efficiently copied (copy the pointer) and compared with other language tags (compare the pointer.
|
Pango
Method |
Pango.language_get_default
()
:
Pango.Language
Returns the PangoLanguage for the current locale of the process.
|
Pango
Method |
Given a script, finds a language tag that is reasonably representative of that script.
|
Pango.AttrIterator
Method |
Get the font and other attributes at the current iterator position.
|
Pango.AttrLanguage
Method |
Create a new Pango.AttrLanguage
|
Pango.Context
Method |
Load a set of fonts in the context that can be used to render a font matching desc.
|
Pango.Context
Method |
Get overall metric information for a particular font description.
|
Pango.Context
Method |
get_language
()
:
Pango.Language
Retrieves the global language tag for the context.
|
Pango.Context
Method |
set_language
(Language language)
:
none
Sets the global language tag for the context.
|
Pango.Font
Method |
get_coverage
(Language language)
:
Pango.Coverage
Computes the coverage map for a given font and language tag.
|
Pango.Font
Method |
Finds the best matching shaper for a font for a particular language tag and character point.
|
Pango.Font
Method |
get_metrics
(Language language)
:
Pango.FontMetrics
Gets overall metric information for a font.
|
Pango.FontMap
Method |
Load a set of fonts in the fontmap that can be used to render a font matching desc.
|
PangoFT2
Method |
Gets the PangoCoverage for a PangoFT2Font.
|