メイン・コンテンツまでスキップ

FontManager

touchgfx/FontManager.hpp

This class is the entry point for looking up a font based on a font id. Must be initialized with the appropriate FontProvider by the application.

Public Functions

Font *getFont(FontId fontId)
Gets a font.
voidsetFontProvider(FontProvider * fontProvider)
Sets the font provider.

Public Functions Documentation

getFont

static Font * getFont(FontIdfontId)

Gets a font.

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

The font with a FontId of fontId.

setFontProvider

static void setFontProvider(FontProvider *fontProvider)

Sets the font provider.

Must be initialized with the appropriate FontProvider by the application.

Parameters:
fontProviderSets the font provider. Must be initialized with the appropriate FontProvider by the application.