주요 내용으로 건너뛰기

FontProvider

touchgfx/FontManager.hpp

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.