Description
GreQueryFontAttributes returns the metrics of the current font at the location addressed by pfmMetrics.
This function is supported by the graphics engine.
#define INCL_GRE_FONTS #include <os2.h> HDC hdc; /* Device context handle. */ LONG cbMetrics; /* Size in bytes of the font metrics buffer. */ PFONTMETRICS pfmMetrics; /* Pointer. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreQueryFontAttributes. */ BOOL fSuccess; /* Return codes. */ fSuccess = GreQueryFontAttributes(hdc, cbMetrics, pfmMetrics, pInstance, lFunction);