| Top |
| JsonObject * | font_manager_get_orthography_results () |
| gchar * | font_manager_get_sample_string () |
| FontManagerOrthography * | font_manager_orthography_new () |
| GList * | font_manager_orthography_get_filter () |
| gdouble | coverage | Read / Write |
| gchar * | name | Read / Write |
| gchar * | native | Read / Write |
| gchar * | sample | Read / Write |
| JsonObject * | source-object | Read / Write |
| #define | FONT_MANAGER_TYPE_ORTHOGRAPHY |
| #define | FONT_MANAGER_START_RANGE_PAIR |
| #define | FONT_MANAGER_END_OF_DATA |
| FontManagerOrthography |
A FontManagerOrthography holds information about the extent to which a font supports a particular language.
In addition to the english name, it includes the untranslated name of the orthography along with a pangram or sample string for the language, if available.
JsonObject *
font_manager_get_orthography_results (JsonObject *font);
The JsonObject returned will have the following structure:
1 2 3 4 5 6 7 8 9 10 11 |
{ "Basic Latin": { "filter": [65, 66, ... 122], "name": "Basic Latin", "native": "Basic Latin", "sample": "AaBbCcGgQqRrSsZz", "coverage": 100.0 }, ..., "sample" : null } |
The returned object contains a member for each orthography detected in font
.
sample will be set to NULL if the font supports rendering the sample string returned
by font_manager_get_localized_pangram, otherwise sample will be set to the
sample string from the member with the highest coverage, if that should fail then
sample will be set to a string randomly generated from the characters available in font
.
FontManagerOrthography *
font_manager_orthography_new (JsonObject *orthography);
orthography
should be one of the members of the object returned
by font_manager_get_orthography_results()
A newly created FontManagerOrthography.
Free the returned object using . g_object_unref()
[transfer full]
GList *
font_manager_orthography_get_filter (FontManagerOrthography *self);
#define FONT_MANAGER_TYPE_ORTHOGRAPHY (font_manager_orthography_get_type ())
“coverage” property “coverage” gdouble
Coverage as a percentage.
Owner: FontManagerOrthography
Flags: Read / Write
Default value: 0
“name” property “name” gchar *
English name for orthography.
Owner: FontManagerOrthography
Flags: Read / Write
Default value: NULL
“native” property “native” gchar *
Native name for orthography.
Owner: FontManagerOrthography
Flags: Read / Write
Default value: NULL
“sample” property “sample” gchar *
Pangram or sample string.
Owner: FontManagerOrthography
Flags: Read / Write
Default value: NULL