Skip to main content
Version: 4.16

FontProvider

A generic pure virtual definition of a FontProvider, which is a class capable of returning a Font based on a FontId. An application-specific derivation of this class must be implemented.

Public Functions#

virtual Font *getFont(FontId fontId) =0
Gets a Font.
virtual ~FontProvider()
Finalizes an instance of the FontProvider class.

Public Functions Documentation#

getFont#

virtual Font * getFont(FontIdfontId)

Gets a Font.

Parameters:
fontIdThe FontId of the font to get.
Returns:

The font with a font id of fontId.

~FontProvider#

virtual ~FontProvider()

Finalizes an instance of the FontProvider class.