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
◆ FontManager()
kanzi::FontManager::FontManager |
( |
Domain * | domain | ) |
|
|
explicit |
Constructor.
- Parameters
-
domain | The domain that owns the font manager. |
◆ ~FontManager()
virtual kanzi::FontManager::~FontManager |
( |
| ) |
|
|
virtual |
◆ getBitmapFontLoader()
Gets a bitmap font loader.
When needed, Kanzi automatically creates a bitmap font loader.
- Returns
- Reference to the bitmap font loader.
◆ getFontLoader() [1/2]
FontLoader & kanzi::FontManager::getFontLoader |
( |
| ) |
|
Gets a font loader.
When needed, Kanzi automatically creates a font loader.
- Returns
- Reference to the font loader.
◆ getFontLoader() [2/2]
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.
◆ setFontEngine()
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. |
◆ getFontEngine()
Returns the font engine used when fetching font loaders.
- Returns
- Font engine used when fetching font loaders.
◆ getGlyphCacheManager()
Returns the glyph cache manager.
- Returns
- Reference to the glyph cache manager.
◆ getShaper()
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.
◆ tryLoadFontEngine()
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.
◆ getRuntimeFont()
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
◆ setBackendProperties()
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
◆ FontRuntime
◆ Domain
The documentation for this class was generated from the following file: