Simulation support:
None. This function is mandatory for all drivers.
Description:
GreDeviceQueryFonts returns the characteristics of device fonts in an array of FONTMETRICS structures, if the QF_PUBLIC option flag (see the flOptions parameter) is set. The returned fonts include those that correspond to device modes such as "expanded" and "expanded-bold".
This function must be supported by the presentation driver.
#define INCL_GRE_DEVMISC2
#include <os2.h>
HDC hdc; /* Device context handle. */
ULONG flOptions; /* Option flags. */
PSZ pszFaceName; /* Pointer to FaceName to match. */
PFONTMETRICS pfmMetrics; /* Pointer to array of FONTMETRICS structures. */
LONG cMetrics; /* Number of bytes of each metrics structure in the metrics array. */
PLONG pcFonts; /* Pointer to the number of fonts requested. */
PVOID pInstance; /* Pointer to instance data. */
ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreDeviceQueryFonts. */
LONG rc; /* Return Codes. */
rc = GreDeviceQueryFonts(hdc, flOptions, pszFaceName,
pfmMetrics, cMetrics, pcFonts, pInstance,
lFunction);