Group: Font and Text - Library: gdi32
The GetTextFace function retrieves the typeface name of the font that is selected into the specified device context.
int GetTextFace(
HDC hdc, // handle to DC
int nCount, // length of typeface name buffer
LPTSTR lpFaceName // typeface name buffer
);
DECLARE INTEGER GetTextFace IN gdi32;
INTEGER hdc,;
INTEGER nCount,;
STRING @ lpFaceName
hdc [in] Handle to the device context.
nCount [in] Specifies the length of the buffer pointed to by lpFaceName.
lpFaceName [out] Pointer to the buffer that receives the typeface name.
If the function succeeds, the return value is the number of characters copied to the buffer. If the function fails, the return value is zero.