FontStructure attributes for the FONT property are as follows.
Set_Property | Get_Property | Description |
---|---|---|
Facename | Facename | Name of font |
Height | Height | Specifies 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). |
Weight | Weight | 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 |
Italic | Italic | Specifies an italic font if it is non-zero. |
Underline | Underline | Specifies an underlined font if it is non-zero. |
Width | Width (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. |
CharSet | CharSet | Specifies the character set of the font. The following values are defined: Constant ANSI_CHARSET DEFAULT_CHARSET SYMBOL_CHARSET SHIFTJIS_CHARSET OEM_CHARSET |
PitchAndFamily | PitchAndFamily | Specifies the pitch (angle) and family (for example, Roman or Swiss) of the selected font. |
StrikeOut | StrikeOut | Specifies a "struckout" font, if it is non-zero. (A horizontal line is drawn through the middle of the text.) |
OutPrecision | not applicable | |
ClipPrecision | not applicable | |
Quality | not applicable | |
not applicable | Ascent | Specifies the ascent of character cells. (The ascent is the space between the base line and the top of the character cell.) |
not applicable | InternalLeading | Specifies 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 applicable | ExternalLeading | Specifies 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 applicable | MaxCharWidth | Specifies the "B" spacing of the widest character in the font. For more information about "B" spacing, refer to the description of the ABC structure. |
LOGFONT and ABC structure in the Microsoft Windows SDK.