## Presentation Device Driver Reference for OS/2

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

### GreQueryFontFileDescriptions - Parameters

hdc (HDC) - input Device context handle.

pszFileName (PSZ) - input Pointer to the file path and name of the font file.

pcFonts (PULONG) - input Pointer.

Pointer to a count of the maximum number of family and face name pairs to be returned. On completion, this count is updated to the number of pairs actually returned.

paszNames (PSZ) - input Pointer.

Pointer to an array of family and face name pairs whose size is 2 x pcFonts . The family name is the first in each pair.

pInstance (PVOID) - input Pointer to instance data.

lFunction (ULONG) - input High-order WORD=flags; low-order WORD= NGreQueryFontFileDescriptions.

rc (ULONG) - returns Return codes.

This function returns the number of fonts not returned, or it returns GPI_ ALTERROR if an error occurs.

Possible Errors Detected: When an error is detected, the graphics engine calls WinSetErrorInfo to post the condition. Reasons for failure of this function include:

PMERR_BASE_ERROR
PMERR_INV_FONT_FILE_DATA

Refer to the "Error Explanations" section of the Presentation Manager Programming Reference for further explanation.