int GetTextFace(hdc, nCount, lpFaceName) | |||||
HDC hdc; | /* device-context handle | */ | |||
int nCount; | |||||
LPTSTR lpFaceName; |
The GetTextFace function copies the typeface name of the selected font into a buffer pointed to by the lpFaceName parameter. The typeface name is copied as a null-terminated character string. The nCount parameter specifies the maximum number of characters to be copied. If the name is longer than the number of characters specified by nCount, it is truncated.
hdc
Identifies the device context.
nCount
Specifies the size of the buffer in characters.
lpFaceName
Points to the buffer that is to receive the typeface name. If this parameter is NULL, the function returns the number of characters in the name, counting the null-terminator.
The return value specifies the actual number of characters copied to the buffer. It is 0 if an error occurs.
The GetTextFace function may be used as either a wide-character function (where text arguments must use Unicode) or an ANSI function (where text arguments must use characters from the Windows 3.x character set).
GetTextAlign, GetTextColor, GetTextExtentPoint, GetTextMetrics