## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### GreDeviceQueryFonts - Remarks

When the device context is not set to draft mode, the returned fonts are those that can be positioned to the nearest pel. Such precision is not necessary if the device context is in draft mode. Draft mode is set by the system calling the GreEscape DEVESC_DRAFTMODE.

In the FONTMETRICS structures, the handling routine sets:

szFacename field to a meaningful name, such as 'Courier Bold'.
usCodepage field to 0. (This field has no significance in this context.)
lMatch field to a negative value. This allows the presentation driver to map the font when the value is specified in a call to GreRealizeFont.

The presentation driver must transform device coordinates to world coordinates before it returns the results to the calling routine. This can be done by using GreConvert. For presentation drivers that support only outline fonts, the return values are for outline fonts even when image fonts have been loaded.