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.
◆ ItypeFontLoader()
| kanzi::ItypeFontLoader::ItypeFontLoader |
( |
Domain * | domain | ) |
|
|
explicit |
Constructor.
- Parameters
-
| domain | Pointer to domain object. |
◆ ~ItypeFontLoader()
| virtual kanzi::ItypeFontLoader::~ItypeFontLoader |
( |
| ) |
|
|
virtual |
◆ createFont()
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.
◆ createFontFromFile()
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.
◆ createFontFromMemory()
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.
◆ ItypeFontFile
The documentation for this class was generated from the following file: