Kanzi 3.9.10
kanzi::ItypeFontEnginePlugin Class Reference

ItypeFontEnginePlugin is the IType font engine plugin implementation. More...

#include <kanzi/plugins/itype/itype_plugin.hpp>

Inheritance diagram for kanzi::ItypeFontEnginePlugin:
[legend]

Public Member Functions

FontEngine getEngineType () const override
 Returns the font engine type that is used by this font engine plugin.
 
FontLoaderPtr getFontLoader (Domain *domain) const override
 Creates a FontLoader object.
 
TextShaperPtr getShaper (const FontRuntime &font) const override
 Creates a TextShaper object.
 
void initialize (const BackendProperties &properties) override
 Initializes the iType font backend with the given properties.
 
 ItypeFontEnginePlugin ()=default
 Constructor.
 
- Public Member Functions inherited from kanzi::Module
virtual void destroy ()
 
virtual MetaclassContainer getMetaclassesOverride ()
 
 Module ()
 
virtual void registerDebugRenderingFunctions (DebugRenderRegistry &)
 Registers the debug rendering functions of the module.
 
virtual void registerMetadataOverride (ObjectFactory &)
 Registers the rest of the module metadata, such as loaders for types in the module.
 
void setDomain (Domain *domain)
 Sets the domain.
 

Static Public Member Functions

static void registerModule (Domain *domain)
 Registers iType font engine available to font manager.
 

Additional Inherited Members

- Public Types inherited from kanzi::FontEnginePlugin
enum class  FontEngine { MockFontEngine , FreeTypeFontEngine , ITypeFontEngine }
 Enumeration for different types of font engine (rasterizer library). More...
 
- Public Types inherited from kanzi::Module
typedef vector< const Metaclass * > MetaclassContainer
 
typedef MetaclassContainer::iterator MetaclassIterator
 
- Static Public Attributes inherited from kanzi::FontEnginePlugin
static const string s_FreeTypeFontEngineName
 Name of the FreeType font engine plugin.
 
static const string s_iTypeFontEngineName
 Name of the iType font engine plugin.
 
- Protected Member Functions inherited from kanzi::Module
virtual ~Module ()=default
 Destructor.
 
- Protected Attributes inherited from kanzi::Module
Domainm_domain
 The domain this module is registered to.
 

Detailed Description

ItypeFontEnginePlugin is the IType font engine plugin implementation.

Font engine plugins contain both font loaders for creating FontFile objects and shapers. Kanzi uses the shapers to shape text that uses Fonts from the same plugin.

ItypeFontEnginePlugin uses IType for rasterizing fonts and WTShaper for shaping.

Constructor & Destructor Documentation

◆ ItypeFontEnginePlugin()

kanzi::ItypeFontEnginePlugin::ItypeFontEnginePlugin ( )
explicitdefault

Constructor.

Member Function Documentation

◆ registerModule()

static void kanzi::ItypeFontEnginePlugin::registerModule ( Domain * domain)
static

Registers iType font engine available to font manager.

Parameters
domainThe domain to which you want the iType font engine module to belong.

◆ getEngineType()

FontEngine kanzi::ItypeFontEnginePlugin::getEngineType ( ) const
overridevirtual

Returns the font engine type that is used by this font engine plugin.

Returns
Type of the font engine.

Implements kanzi::FontEnginePlugin.

◆ getFontLoader()

FontLoaderPtr kanzi::ItypeFontEnginePlugin::getFontLoader ( Domain * domain) const
overridevirtual

Creates a FontLoader object.

Parameters
domainThe domain to which you want the iType font loader to belong.
Returns
Pointer to the FontLoader object.

Implements kanzi::FontEnginePlugin.

◆ getShaper()

TextShaperPtr kanzi::ItypeFontEnginePlugin::getShaper ( const FontRuntime & font) const
overridevirtual

Creates a TextShaper object.

Parameters
fontThe Font that the shaper will use.
Returns
Pointer to the TextShaper object.

Implements kanzi::FontEnginePlugin.

◆ initialize()

void kanzi::ItypeFontEnginePlugin::initialize ( const BackendProperties & properties)
overridevirtual

Initializes the iType font backend with the given properties.

Parameters
propertiesThe properties with which to initialize the iType font backend.
Since
Kanzi 3.9.4

Implements kanzi::FontEnginePlugin.


The documentation for this class was generated from the following file: