SetTerPointSize
Set font pointsize for the text
BOOL SetTerPointSize(hWnd, pointsize, repaint)
HWND hWnd; | Handle of the window to be accessed |
int pointsize; | size of the new font in points (72 points = 1 inch). You can specify the font size in twips unit by using a negative value (1 point equal 20 twips). |
BOOL repaint; | TRUE to refresh the window after this operation |
Description: This function is used to apply the new font size to the text. If a text block is highlighted, this operation is applicable to all characters in the block. Otherwise only the current character is affected.
Return Value: This function returns TRUE if successful.
Example:
// select the first 40 characters of the first line.
SelectTerText(hWnd,0,0,0,40,FALSE);
// Set the point size of 14 to the selected text
SetTerPointSize(hWnd,14,TRUE);
// Set the font size to 280 twips (14 points).
SetTerPointSize(hWnd,-280,TRUE);
Se Also:
SelectTerText
SetTerFont
SetTerCharStyle