## Presentation Device Driver Reference for OS/2

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

### GreCreateLogicalFont Return Value - rc

rc (LONG) - returns Return Codes.

This function returns a LONG value indicating whether the font has been matched:

FONT_DEFAULT The font was not matched. The default font is to be used.
FONT_MATCH The font has been matched successfully.
GPI_ERROR Error.

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_COORDINATE_OVERFLOW
PMERR_DEV_FUNC_NOT_INSTALLED
PMERR_EXCEEDS_MAX_SEG_LENGTH
PMERR_HDC_BUSY
PMERR_INSUFFICIENT_MEMORY
PMERR_INV_CODEPAGE
PMERR_INV_COORD_SPACE
PMERR_INV_EXTENDED_LCID
PMERR_INV_FONT_ATTRS
PMERR_INV_FONTDEF
PMERR_INV_HDC
PMERR_INV_IN_AREA
PMERR_INV_LENGTH_OR_COUNT
PMERR_INV_SETID
PMERR_SETID_IN_USE

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