## Presentation Device Driver Reference for OS/2

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

### GreQueryFontFileDescriptions

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description

GreQueryFontFileDescriptions determines whether a file is a font file and, if so, returns the family and face names for the fonts in the file.

This function is supported by the graphics engine.

    #define INCL_GRE_FONTS

    #include <os2.h>

    HDC       hdc;          /*  Device context handle. */

    PSZ       pszFileName;  /*  Pointer to the file path and name of the font file. */

    PULONG    pcFonts;      /*  Pointer. */

    PSZ       paszNames;    /*  Pointer. */

    PVOID     pInstance;    /*  Pointer to instance data. */

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

    ULONG       rc ;              / *    Return   codes .   * /

    rc   =   GreQueryFontFileDescriptions ( hdc ,   pszFileName ,

            pcFonts ,   paszNames ,   pInstance ,   lFunction ) ;