## Presentation Device Driver Reference for OS/2

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

### GreDeviceSetAVIOFont - Syntax

Simulation support:

This function is mandatory for display drivers. For other drivers, it is simulated by a handling routine in the graphics engine.

Description:

GreDeviceSetAVIOFont loads or deletes an image font used by the AVIO presentation space associated with the device context.

    #define INCL_GRE_DEVMISC1

    #include <os2.h>

    HDC        hdc;        /*  The device context handle. */

    PFATTRS    pLogFont;   /*  A pointer to a logical font. */

    PBYTE      pFontDef;

    LONG       lcid;       /*  Local identifier value of -2, -3, or -4. */

    PVOID      pInstance;  /*  A pointer to instance data. */

    ULONG      lFunction;  /*  High-order WORD=flags; low-order WORD=NGreDeviceSetAVIOFont. */

    BOOL       fSuccess;   /*  Return codes. */

    fSuccess = GreDeviceSetAVIOFont(hdc, pLogFont,

                 pFontDef, lcid, pInstance, lFunction);