Click or drag to resize

LOGFONT Fields

The LOGFONT type exposes the following members.

Fields
Name Description
Public field lfCharSet
Specifies the character set. The following values are predefined.
Public field lfClipPrecision
Specifies the clipping precision. The clipping precision defines how to clip characters that are partially outside the clipping region.
Public field lfEscapement
Specifies the angle, in tenths of degrees, between the escapement vector and the x-axis of the device. The escapement vector is parallel to the base line of a row of text.
Public field lfFaceName
A null-terminated string that specifies the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character. The EnumFontFamiliesEx function can be used to enumerate the typeface names of all currently available fonts. If lfFaceName is an empty string, GDI uses the first font that matches the other specified attributes.
Public field lfHeight
Specifies the height, in logical units, of the font's character cell or character. The character height value (also known as the em height) is the character cell height value minus the internal-leading value.
Public field lfItalic
Specifies an italic font if set to TRUE.
Public field lfOrientation
Specifies the angle, in tenths of degrees, between each character's base line and the x-axis of the device.
Public field lfOutPrecision
Specifies the output precision. The output precision defines how closely the output must match the requested font's height, width, character orientation, escapement, pitch, and font type.
Public field lfPitchAndFamily
Specifies the pitch and family of the font. The two low-order bits specify the pitch of the font. Font families describe the look of a font in a general way. They are intended for specifying fonts when the exact typeface desired is not available.
Public field lfQuality
Specifies the output quality. The output quality defines how carefully the graphics device interface (GDI) must attempt to match the logical-font attributes to those of an actual physical font.
Public field lfStrikeOut
Specifies a strikeout font if set to TRUE.
Public field lfUnderline
Specifies an underlined font if set to TRUE.
Public field lfWeight
Specifies the weight of the font in the range 0 through 1000. For example, 400 is normal and 700 is bold. If this value is zero, a default weight is used.
Public field lfWidth
Specifies the average width, in logical units, of characters in the font. If lfWidth is zero, the aspect ratio of the device is matched against the digitization aspect ratio of the available fonts to find the closest match, determined by the absolute value of the difference.
Top
See Also