Flags containing
information about how the font is to be related to the character attributes:
FATTR_FONTUSE_NOMIX
Specifies that permissive mixing
is allowed when the font is used. The engine can ignore any interaction
with graphics primitives and can use overpaint and leave alone
as the foreground and background mixes rather than using the current
mix attributes.
FATTR_FONTUSE_OUTLINE
Specifies
that the font must be an outline font. When the font is not defined by lMatch
and FATTR_FONTUSE_OUTLINE is specified, the system searches for an outline
font. If the search fails, a default font is selected. When the font is
not defined by lMatch and FATTR_FONTUSE_OUTLINE is not set, the system searches
for an image font that matches lMaxBaselineExt and lAveCharWidth. If this
fails, it searches for an outline font with the required szFaceName and
fsSelection flags.
FATTR_FONTUSE_TRANSFORMABLE
Specifies that the font must be transformable (that
is, it can be scaled, rotated, and sheared). Transformable fonts are used
only in CM_MODE3. Nontransformable fonts can be used in CM_MODE1 or CM_MODE2
but not in CM_MODE3.
pInstance (PVOID) - input
Pointer
to instance data.
lFunction (ULONG) - input
High-order
WORD=flags; low-order WORD=NGreCreateLogicalFont.
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
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.
[Back: GreCreateLogicalFont Return Value - rc]
[Next: GreCreateLogicalFont - Remarks]