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
Apply the specified font hinting type. EVAS_FONT_HINTING_NONE < No font hinting EVAS_FONT_HINTING_AUTO < Automatic font hinting EVAS_FONT_HINTING_BYTECODE < Bytecode font hinting
- Parameters:
-
type | The font hinting type |
This applies font hint changes to all windows of the current application.
- Since (EFL) :
- 1.13
- Since :
- 3.0
Unset a font overlay for a given Elementary text class.
- Parameters:
-
text_class | Text class name |
This will bring back text elements belonging to text class text_class
back to their default font settings.
- Since :
- 2.3
Get Elementary's list of supported text classes.
- Returns:
- The text classes list, with
Elm_Text_Class
blobs as data.
Release the list with elm_text_classes_list_free().
- Since :
- 2.3
Create a font hash table of available system fonts.
One must call it with list
being the return value of evas_font_available_list(). The hash will be indexed by font (family) names, being its values Elm_Font_Properties
blobs.
- Parameters:
-
- Returns:
- the font hash.
- Note:
- 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.
- Since :
- 2.3
Translate a font name, bound to a style, into fontconfig's font names syntax.
- Parameters:
-
name | The font (family) name |
style | The given style (may be NULL ) |
- Returns:
- the font name and style string
- Note:
- The reverse translation can be achieved with elm_font_properties_get(), for one style only (single font instance, not family).
- Since :
- 2.3
Apply the changes made with elm_font_overlay_set() and elm_font_overlay_unset() on all Elementary application windows.
This applies all font overlays set to all objects in the UI.
- Deprecated:
- Use elm_font_overlay_apply and elm_config_all_flush()
Translate a font (family) name string in fontconfig's font names syntax into an Elm_Font_Properties
struct.
- Parameters:
-
font | The font name and styles string |
- Returns:
- the font properties struct
- Note:
- The reverse translation can be achieved with elm_font_fontconfig_name_get(), for one style only (single font instance, not family).
- Since :
- 2.3