#include <font.h>
Public Member Functions | |
Font (FontService &service) | |
virtual | ~Font () |
virtual bool | init (utility::ErrorState &errorState) override |
FontInstance & | getFontInstance () |
const FontInstance & | getFontInstance () const |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
FontProperties | mProperties |
Property: 'Properties' the properties (size, dpi, path) that describe the font. More... | |
std::string | mFont |
Property: 'Font' path to the font on disk. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Loads a font from disk using the specified size and properties. The resource creates a nap::FontInstance on initialization. Use the getFontInstance() call to access all font related functionality.
Font | ( | FontService & | service | ) |
Constructor used by factory registered in the font service
|
virtual |
FontInstance& getFontInstance | ( | ) |
Returns the font created on initialization, use this object to access all font related functionality
const FontInstance& getFontInstance | ( | ) | const |
Returns the font created on initialization, use this object to access all font related functionality
|
overridevirtual |
Initialize this object after de-serialization, creates a new font instance. Use the font instance to access all font related information
errorState | contains the error message when initialization fails |
Reimplemented from Object.
std::string mFont |
Property: 'Font' path to the font on disk.
FontProperties mProperties |
Property: 'Properties' the properties (size, dpi, path) that describe the font.