How to use multiple fonts in one control?

I see how can I load the font: pGraphics->LoadFont(“Roboto-Regular”, ROBOTO_FN);

However, I am not sure how to select what font I want to use inside the control. Should I call pGraphics->LoadFont("*********", ***********_FN); every time I want to change the font?

For every font you want to use you need to call IGraphics::LoadFont().

For a control with two styles of text formatting in different parts of the control, you could have two member variables of type IText mTitleText, IText mLabelText, and their “IText:mFont” should be the ID Cstring provided as first arg to LoadFont()

2 Likes