TBSetFontΒΆ
TBSetFont sets the font for the specified text object.
-
bool = TBSetFont(hText, hFont)
Return Value
If the function succeeds, the return value bool is TRUE (1); otherwise it is FALSE (0).
Parameters
-
hText
The handle of a text object created with TBCreate
-
hFont
The handle of a font object created with FontCreate.
Example
Set font color to red.
hFont = TBGetFont(hText);
FontSetColorRGB(hFont, [255,0,0]); // red
TBSetFont(hText, hFont);
FontDestroy(hFont);
See also
id-296593