FONTDESC structure (olectl.h)

Contains parameters used to create a font object through the OleCreateFontIndirect function.

Syntax

typedef struct tagFONTDESC {
  UINT     cbSizeofstruct;
  LPOLESTR lpstrName;
  CY       cySize;
  SHORT    sWeight;
  SHORT    sCharset;
  BOOL     fItalic;
  BOOL     fUnderline;
  BOOL     fStrikethrough;
} FONTDESC, *LPFONTDESC;

Members

cbSizeofstruct

The size of the structure, in bytes.

lpstrName

Pointer to an OLESTR that specifies the caller-owned string specifying the font name.

cySize

cySize

Initial point size of the font. Use the int64 member of the CY structure and scale your font size (in points) by 10000.

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.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header olectl.h

See also

OleCreateFontIndirect