TE Edit Control Win32 / Win64 Help
Product page

TerGetEffectiveFont

Retrieve the font id effective at the current cursor position.

int TerGetEffectiveFont(hWnd)
HWND hWnd;The handle of the window to be accessed

Return Value: This function returns the effective font id for the next keyboard input at the current cursor position. If your application uses an external toolbar, use this font id to show the current font attributes in your toolbar.