RAMSES Documentation  27.0.130
Information for RAMSES users and developers
Public Member Functions | List of all members
ramses::IFontAccessor Class Referenceabstract

Interface for getting font instances using font instance ids. More...

#include <IFontAccessor.h>

Inheritance diagram for ramses::IFontAccessor:
[legend]

Public Member Functions

virtual ~IFontAccessor ()=default
 Empty destructor. More...
 
virtual IFontInstancegetFontInstance (FontInstanceId fontInstanceId) const =0
 Gets a font instance object using font instance id. More...
 

Detailed Description

Interface for getting font instances using font instance ids.

This interface allows overriding the standard Freetype/Harfbuzz logic to create and access fonts and e.g. replace with other implementations, or just override behavior/settings. Can be also used to pre-load font instances and a predefined set of glyphs statically (or load from file).

Constructor & Destructor Documentation

◆ ~IFontAccessor()

virtual ramses::IFontAccessor::~IFontAccessor ( )
virtualdefault

Empty destructor.

Member Function Documentation

◆ getFontInstance()

virtual IFontInstance* ramses::IFontAccessor::getFontInstance ( FontInstanceId  fontInstanceId) const
pure virtual

Gets a font instance object using font instance id.

Parameters
[in]fontInstanceIdThe id of font instance
Returns
The font instance object

Implemented in ramses::FontRegistry.


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