DrvQueryFontFile

LONG DrvQueryFontFile(

IN ULONG iFile,
IN ULONG ulMode,
IN ULONG cjBuf,
IN ULONG *pulBuf
);

DrvQueryFontFile provides font file information.

Parameters

iFile

Identifies the driver font file. This identifier is returned by a prior call to DrvLoadFontFile.

ulMode

Specifies the type of information to be written. This parameter can be one of the following values:

Value Meaning
QFF_DESCRIPTION The function provides a string that Windows NT will use to describe the font file. A zero-terminated Unicode string is written to the buffer pointed to by pulBuffer.
QFF_NUMFACES The function returns the number of typefaces in the font file; the cjBuf and pulBuf parameters are ignored. Typefaces are identified by an index ranging from one through the number of typefaces.

cjBuf

Specifies the size, in bytes, of the return buffer.

pulBuf

Points to the return buffer.

Return Value

If ulMode is QFF_NUMFACES, then the return value is the number of faces in the font file. If pulBuf is null, it is the number of bytes of data that would be written to pulBuf; otherwise, it is the number of bytes written to pulBuf. If an error occurs, the return value is FD_ERROR.

Comments

DrvQueryFontFile is required for font drivers.

See Also

DrvLoadFontFile