TE Edit Control Win32 / Win64 Help
Product page

TerSetFontStyleId

Set the style ids for a font id.

BOOL TerSetFontStyleId(hWnd, FontId, CharStyleId, ParaStyleId)
HWND hWnd;The handle of the window to be accessed
int FontId;FontId (0 to TotalFonts-1) to modify.
int CharStyleId;New character style id for the font. Set to -1 to leave this value unchanged.
int ParaStyleId;New paragraph style id for the font. Set to -1 to leave this value unchanged.

Return Value: This function returns TRUE when successful.