INPUTCONTEXT Structure     LOGFONTW Structure     Active Input Method Manag...    
Web Workshop (Miscellaneous)

LOGFONTA Structure


Defines the attributes of a font.

Syntax

typedef struct{
    LONG lfHeight;
    LONG lfWidth;
    LONG lfEscapement;
    LONG lfOrientation;
    LONG lfWeight;
    BYTE lfItalic;
    BYTE lfUnderline;
    BYTE lfStrikeOut;
    BYTE lfCharSet;
    BYTE lfOutPrecision;
    BYTE lfClipPrecision;
    BYTE lfQuality;
    BYTE lfPitchAndFamily;
    CHAR lfFaceName[LF_FACESIZE];
}LOGFONTA;

Members

lfHeight
Long integer value that specifies the height, in logical units, of the font's character cell or character.
lfWidth
Long integer value that specifies the width, in logical units, of characters in the font.
lfEscapement
Long integer value that contains 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.
lfOrientation
Long integer value that specifies the angle, in tenths of degrees, between each character's base line and the x-axis of the device.
lfWeight
Long integer value that specifies the weight of the font in the range 0 through 1000.
lfItalic
BYTE value that specifies an italic font if set to TRUE.
lfUnderline
BYTE value that specifies an underlined font if set to TRUE.
lfStrikeOut
BYTE value that specifies a strikeout font if set to TRUE.
lfCharSet
BYTE value that specifies the character set.
lfOutPrecision
BYTE value that 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.
lfClipPrecision
BYTE value that specifies the clipping precision. The clipping precision defines how to clip characters that are partially outside the clipping region.
lfQuality
BYTE value that 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.
lfPitchAndFamily
BYTE value that specifies the pitch and family of the font.
lfFaceName
Array of characters that contains a null-terminated string that specifies the typeface name of the font. The length of the string must not exceed 32 characters, including the NULL terminator.

Remarks

This structure maps to the LOGFONT structure documented in the Microsoft® Platform Software Development Kit (SDK). Non-MSDN link

Structure Information

Windows NT Use version 4.0. Implemented as an ANSI structure.
Windows Use Windows 95 and later. Implemented as an ANSI structure.
Header Declared in Dimm.idl.
Minimum availability Internet Explorer 5


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.