FontStructure attributes for the FONT property are as follows.

Set_PropertyGet_PropertyDescription
FacenameFacenameName of font
HeightHeightSpecifies the height of character cells. For Set_Property, height is positive for cell height, negative for character height. For Get_Property, height is always positive (cell height).
WeightWeight

Specifies the weight of the font. This member can be one of the following values:

Constant
FW_DONTCARE
FW_THIN
FW_EXTRALIGHT
FW_ULTRALIGHT
FW_LIGHT
FW_NORMAL
FW_REGULAR
FW_MEDIUM
FW_SEMIBOLD
FW_DEMIBOLD
FW_BOLD
FW_EXTRABOLD
FW_ULTRABOLD
FW_BLACK
FW_HEAVY
ItalicItalicSpecifies an italic font if it is non-zero.
UnderlineUnderlineSpecifies an underlined font if it is non-zero.
WidthWidth (average character width)Specifies the average width of characters in the font. For ANSI_CHARSET fonts, this is a weighted average of the characters "a" through "z" and the space character. For other character sets, this value is an unweighted average of all characters in the font.
CharSetCharSet

Specifies the character set of the font. The following values are defined:

Constant
ANSI_CHARSET
DEFAULT_CHARSET
SYMBOL_CHARSET
SHIFTJIS_CHARSET
OEM_CHARSET
PitchAndFamilyPitchAndFamilySpecifies the pitch (angle) and family (for example, Roman or Swiss) of the selected font.
StrikeOutStrikeOutSpecifies a "struckout" font, if it is non-zero. (A horizontal line is drawn through the middle of the text.)
OutPrecisionnot applicable 
ClipPrecisionnot applicable 
Qualitynot applicable 
not applicableAscentSpecifies the ascent of character cells. (The ascent is the space between the base line and the top of the character cell.)
not applicableInternalLeadingSpecifies the difference between the point size of a font and the physical size of the font. For TrueType fonts, this value is equal to tmHeight minus (s * ntmSizeEM), where s is the scaling factor for the TrueType font and ntmSizeEM is a value from the NEWTEXTMETRIC structure. For bitmap fonts, this value is used to determine the point size of a font. When an application specifies a negative value in the lfHeight member of the LOGFONT structure, the application is requesting a font whose height equals tmHeight minus tmInternalLeading.
not applicableExternalLeadingSpecifies the amount of extra leading (space) that the application adds between rows. Since this area is outside the character cell, it contains no marks and will not be altered by text output calls in either opaque or transparent mode. The font designer sometimes sets this member to zero.
not applicableMaxCharWidthSpecifies the "B" spacing of the widest character in the font. For more information about "B" spacing, refer to the description of the ABC structure.

See also

LOGFONT and ABC structure in the Microsoft Windows SDK.

  • No labels