Simulation support:

None. This function is mandatory for all drivers.

Description:

GreQueryWidthTable stores, at the location addressed by paWidthTable, an array of world coordinates representing the width-table information of the currently selected font.

This function must be supported by the presentation driver. GreQueryWidthTable is called by the function GpiQueryWidthTable.

#define INCL_GRE_STRINGS
#include <os2.h>

HDC      hdc;           /*  Device context handle. */
LONG     lFirstChar;    /*  Code point of the initial character for which width-table information is required. */
LONG     cWidthTable;   /*  Count of widths in the width-table data. */
PLONG    paWidthTable;  /*  Pointer to buffer of width-table data. */
PVOID    pInstance;     /*  Pointer to instance data. */
ULONG    lFunction;     /*  High-order WORD=flags; low-order WORD=NGreQueryWidthTable. */
BOOL     rc;            /*  Return Code. */

rc = GreQueryWidthTable(hdc, lFirstChar, cWidthTable,
       paWidthTable, pInstance, lFunction);


[Back: GreQueryWidthTable]
[Next: GreQueryWidthTable Parameter - hdc]