FontLoader implementation for Monotype's iType rasterizer.
More...
#include <kanzi/plugins/itype/itype_font_loader.hpp>
FontLoader implementation for Monotype's iType rasterizer.
Use it to create ItypeFontFile objects from memory or a file.
kanzi::ItypeFontLoader::ItypeFontLoader |
( |
Domain * |
domain | ) |
|
|
explicit |
Constructor.
- Parameters
-
domain | Pointer to domain object. |
virtual kanzi::ItypeFontLoader::~ItypeFontLoader |
( |
| ) |
|
|
virtual |
Creates an empty FontFile object.
Load the font data using the ItypeFontFile::loadFromKZB() function.
- Parameters
-
name | Name of the created FontFile object. |
- Returns
- Shared pointer to the created FontFile object.
Reimplemented from kanzi::FontLoader.
Creates a FontFile object from a file.
- Parameters
-
filePath | Full path to the font file, including the file name. Kanzi uses the file name to set the font name. |
- Returns
- Shared pointer to the created FontFile object.
- Exceptions
-
If | the method cannot read the font file, throws KZU_ERROR_ITYPE_FAILED. |
Reimplemented from kanzi::FontLoader.
FontFileSharedPtr kanzi::ItypeFontLoader::createFontFromMemory |
( |
const byte * |
data, |
|
|
size_t |
size, |
|
|
string_view |
name, |
|
|
bool |
createMemoryCopy |
|
) |
| |
|
overridevirtual |
Creates a FontFile object from the memory.
- Parameters
-
data | Pointer to the font data in the memory. |
size | Size of the font data in the memory. |
name | Name of the created FontFile object. |
createMemoryCopy | True if you want to create for the object a new copy of the given font data. |
- Returns
- Shared pointer to the created FontFile object.
Reimplemented from kanzi::FontLoader.
The documentation for this class was generated from the following file: