Tizen Native API
|
Functions | |
Eina_List * | elm_config_text_classes_list_get (void) |
Get Elementary's list of supported text classes. | |
void | elm_config_text_classes_list_free (Eina_List *list) |
Free Elementary's list of supported text classes. | |
const Eina_List * | elm_config_font_overlay_list_get (void) |
Get Elementary's list of font overlays, set with elm_config_font_overlay_set(). | |
void | elm_config_font_overlay_set (const char *text_class, const char *font, Evas_Font_Size size) |
Set a font overlay for a given Elementary text class. | |
void | elm_config_font_overlay_unset (const char *text_class) |
Unset a font overlay for a given Elementary text class. | |
void | elm_config_font_overlay_apply (void) |
Apply the changes made with elm_config_font_overlay_set() and elm_config_font_overlay_unset() on the current Elementary window. | |
Elm_Font_Properties * | elm_font_properties_get (const char *font) |
Translate a font (family) name string in fontconfig's font names syntax into an Elm_Font_Properties struct. | |
void | elm_font_properties_free (Elm_Font_Properties *efp) |
Free font properties return by elm_font_properties_get(). | |
char * | elm_font_fontconfig_name_get (const char *name, const char *style) |
Translate a font name, bound to a style, into fontconfig's font names syntax. | |
void | elm_font_fontconfig_name_free (char *name) |
Free the font string return by elm_font_fontconfig_name_get(). | |
Eina_Hash * | elm_font_available_hash_add (Eina_List *list) |
Create a font hash table of available system fonts. | |
void | elm_font_available_hash_del (Eina_Hash *hash) |
Free the hash returned by elm_font_available_hash_add(). | |
Typedefs | |
typedef struct _Elm_Font_Overlay | Elm_Font_Overlay |
Structure of Elm Font Overlay. | |
typedef struct _Elm_Font_Properties | Elm_Font_Properties |
Structure of Elm Font Property. |
These are functions dealing with font rendering, selection and the like for Elementary applications. One might fetch which system fonts are there to use and set custom fonts for individual classes of UI items containing text (text classes).
Function Documentation
void elm_config_font_overlay_apply | ( | void | ) |
Apply the changes made with elm_config_font_overlay_set() and elm_config_font_overlay_unset() on the current Elementary window.
- Since :
- 2.3
- Remarks:
- This applies all font overlays set to all objects in the UI.
const Eina_List* elm_config_font_overlay_list_get | ( | void | ) |
Get Elementary's list of font overlays, set with elm_config_font_overlay_set().
- Since :
- 2.3
- Returns:
- The font overlays list, with
Elm_Font_Overlay
blobs as data.
- Remarks:
- For each text class, one can set a font overlay for it, overriding the default font properties for that class coming from the theme in use. There is no need to free this list.
- See also:
- elm_config_font_overlay_set() and elm_config_font_overlay_unset().
void elm_config_font_overlay_set | ( | const char * | text_class, |
const char * | font, | ||
Evas_Font_Size | size | ||
) |
Set a font overlay for a given Elementary text class.
- Since :
- 2.3
- Parameters:
-
[in] text_class Text class name [in] font Font name and style string [in] size Font size.
- Remarks:
- If the
size
is lower than zero, the value will be the amount of the size percentage. ex) -50: half of the current size, -100: current size, -10: 1/10 size. -
font
has to be in the format returned by elm_font_fontconfig_name_get().
void elm_config_font_overlay_unset | ( | const char * | text_class | ) |
Unset a font overlay for a given Elementary text class.
- Since :
- 2.3
- Parameters:
-
[in] text_class Text class name
- Remarks:
- This will bring back text elements belonging to text class
text_class
back to their default font settings.
void elm_config_text_classes_list_free | ( | Eina_List * | list | ) |
Free Elementary's list of supported text classes.
- Since :
- 2.3
- Parameters:
-
[in] list The list of supported text classes.
- See also:
- elm_config_text_classes_list_get().
Eina_List* elm_config_text_classes_list_get | ( | void | ) |
Get Elementary's list of supported text classes.
- Since :
- 2.3
- Returns:
- The text classes list, with
Elm_Text_Class
blobs as data.
- Remarks:
- Release the list with elm_text_classes_list_free().
Eina_Hash* elm_font_available_hash_add | ( | Eina_List * | list | ) |
Create a font hash table of available system fonts.
- Since :
- 2.3
- Remarks:
- One must call it with
list
being the return value of Evas Font Available List function. The hash will be indexed by font (family) names, being its valuesElm_Font_Properties
blobs.
- Parameters:
-
[in] list The list of available system fonts, as returned by Evas Font Available List function.
- Returns:
- the font hash.
- Remarks:
- The user is supposed to get it populated at least with 3 default font families (Sans, Serif, Monospace), which should be present on most systems.
void elm_font_available_hash_del | ( | Eina_Hash * | hash | ) |
Free the hash returned by elm_font_available_hash_add().
- Since :
- 2.3
- Parameters:
-
[in] hash the hash to be freed.
void elm_font_fontconfig_name_free | ( | char * | name | ) |
Free the font string return by elm_font_fontconfig_name_get().
- Since :
- 2.3
- Parameters:
-
[in] name the font properties struct
char* elm_font_fontconfig_name_get | ( | const char * | name, |
const char * | style | ||
) |
Translate a font name, bound to a style, into fontconfig's font names syntax.
- Since :
- 2.3
- Parameters:
-
[in] name The font (family) name [in] style The given style (may be NULL
)
- Returns:
- the font name and style string
- Remarks:
- The reverse translation can be achieved with elm_font_properties_get(), for one style only (single font instance, not family).
void elm_font_properties_free | ( | Elm_Font_Properties * | efp | ) |
Free font properties return by elm_font_properties_get().
- Since :
- 2.3
- Parameters:
-
[in] efp the font properties struct
Elm_Font_Properties* elm_font_properties_get | ( | const char * | font | ) |
Translate a font (family) name string in fontconfig's font names syntax into an Elm_Font_Properties
struct.
- Since :
- 2.3
- Parameters:
-
[in] font The font name and styles string
- Returns:
- the font properties struct
- Remarks:
- The reverse translation can be achieved with elm_font_fontconfig_name_get(), for one style only (single font instance, not family).