# Function Reference

# _WinAPI_GetTextMetrics

Retrieves basic information for the currently selected font

#include <WinAPIGdi.au3>
_WinAPI_GetTextMetrics ( $hDC )

## Parameters

$hDC | Handle to the device context.

## Return Value

Success: | $tagTEXTMETRIC structure that contains the information about the currently selected font.
Failure: | 0 and sets the @error flag to non-zero.

## Related

$tagTEXTMETRIC

## See Also

Search GetTextMetrics in MSDN Library.