FONTDESC
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.
QuickInfo
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in olectl.h.
See Also
OleCreateFontIndirect