Use the FontManager class to:
More...
#include <kanzi/core.ui/font/font_manager.hpp>
Use the FontManager class to:
- Set the font rasterizer engine that you want to use.
- Access a FontLoader to create a font file object.
- Access GlyphCacheManager and GlyphCaches.
- Since
- Kanzi 3.7.0
kanzi::FontManager::FontManager |
( |
Domain * |
domain | ) |
|
|
explicit |
Constructor.
- Parameters
-
domain | The domain that owns the font manager. |
virtual kanzi::FontManager::~FontManager |
( |
| ) |
|
|
virtual |
Gets a bitmap font loader.
When needed, Kanzi automatically creates a bitmap font loader.
- Returns
- Reference to the bitmap font loader.
Gets a font loader.
When needed, Kanzi automatically creates a font loader.
- Returns
- Reference to the font loader.
Gets a font loader using the specified font engine type.
When needed, Kanzi automatically creates a font loader.
- Parameters
-
engine | The type of font engine to use for this loader. |
- Returns
- Reference to the font loader.
Sets the font engine backend to use when fetching font loaders.
If the font engine backend is not already loaded, Kanzi loads the requested backend.
- Parameters
-
engine | The type of font engine backend to use. |
Returns the font engine used when fetching font loaders.
- Returns
- Font engine used when fetching font loaders.
Returns the glyph cache manager.
- Returns
- Reference to the glyph cache manager.
Gets a text shaper, which can shape text rendered with given font.
- Parameters
-
font | Font used in the text to be shaped. |
- Returns
- Pointer to the shaper object.
Automatically recognizes and loads the plugin for a font engine backend.
- Returns
- If the function successfully loads the plugins for a font engine backend, returns true, otherwise false.
Creates a runtime font you can use to draw text with passed fontFamily and fontStyleDefinition.
- Parameters
-
fontFamily | A font family the runtime font uses. |
fontStyleDefinition | Font style that the returned runtime font object must use. |
- Returns
- Pointer to the runtime font object.
- Since
- Kanzi 3.8.0
Sets the font backend properties that are used by FontEngine.
- Parameters
-
engine | FontEngine for which to set the backend properties. |
properties | Font backend properties to set, such as optional dictionaries. |
- Since
- Kanzi 3.9.4
The documentation for this class was generated from the following file: