Description
GreQueryLogicalFont returns the 8-character name and attributes for the logical font that is defined for the specified lcid.
This function is supported by the graphics engine.
#define INCL_GRE_FONTS
#include <os2.h>
HDC hdc; /* Device context handle. */
LONG lcid; /* Local identifier for the logical font. */
PSTR8 pchName; /* Pointer to an 8-character name used to describe the logical font. */
PFATTRS pLogFont; /* Pointer to a font attribute structure. */
ULONG cLogFont; /* Number of bytes of font attribute information requested. */
PVOID pInstance; /* Pointer to instance data. */
ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreQueryLogicalFont. */
BOOL fSuccess; /* Return codes. */
fSuccess = GreQueryLogicalFont(hdc, lcid,
pchName, pLogFont, cLogFont,
pInstance, lFunction);