FONTDESC  AN2KXI

The FONTDESC structure contains parameters used to create a font object through the OleCreateFontIndirect function.

typedef struct tagFONTDESC

   

    UINT cbSizeOfStruct;

    LPOLESTR lpstrName;

    CY cySize;

    SHORT sWeight;

    SHORT sCharset;

    BOOL fItalic;

    BOOL fUnderline;

    BOOL fStrikethrough;

    } FONTDESC;

 

Members

cbSizeOfStruct

Size of the FONTDESC structure.

lpstrName

Pointer to the caller-owned string specifying the font name.

cySize

Initial point size of the font in CY units.

sWeight

Initial weight of the font. If the weight is below 550 (the average of FW_NORMAL, 400, and FW_BOLD, 700), then the Bold property is also initialized to FALSE. If the weight is above 550, the Bold property is set to TRUE.

sCharset

Initial character set of the font.

fItalic

Initial italic state of the font.

fUnderline

Initial underline state of the font.

fStrikethrough

Initial strikethrough state of the font.

 

See Also

OleCreateFontIndirect