Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.15 KB

GetTextFace.md

File metadata and controls

52 lines (36 loc) · 1.15 KB

Home

Function name : GetTextFace

Group: Font and Text - Library: gdi32


The GetTextFace function retrieves the typeface name of the font that is selected into the specified device context.


Code examples:

Using Font and Text functions

Declaration:

int GetTextFace(
  HDC hdc,            // handle to DC
  int nCount,         // length of typeface name buffer
  LPTSTR lpFaceName   // typeface name buffer
);  

FoxPro declaration:

DECLARE INTEGER GetTextFace IN gdi32;
	INTEGER   hdc,;
	INTEGER   nCount,;
	STRING  @ lpFaceName  

Parameters:

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.


Return value:

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.