This structure contains members that specify font in a format similar to MS logical font.
Declaration:
Copy Code | |
---|---|
typedef struct tagAT_LOGFONT
{
AT_INT32 lfHeight;
AT_INT32 lfWidth;
AT_INT32 lfEscapement;
AT_INT32 lfOrientation;
AT_INT32 lfWeight;
AT_BYTE lfItalic;
AT_BYTE lfUnderline;
AT_BYTE lfStrikeOut;
AT_BYTE lfCharSet;
AT_BYTE lfOutPrecision;
AT_BYTE lfClipPrecision;
AT_BYTE lfQuality;
AT_BYTE lfPitchAndFamily;
AT_CHAR lfFaceName[LF_FACESIZE];
} AT_LOGFONT, *LPAT_LOGFONT;
|
Members:
lfHeight |
The height of the font's character cell or character. Expressed in logical units. Also known as the height. |
lfWidth |
The average width of characters in the font. Expressed in logical units. |
lfEscapement |
The angle between the escapement vector and the x-axis of the device. Expressed in tenths of degrees. |
lfOrientation |
The angle between each character’s base line and the x-axis of the device. Expressed in tenths of degrees. |
lfWeight |
The weight of the font in the range 0 through 1000. If this value is 0 then the default weight is used. |
lfItalic |
An italic font if set to TRUE. |
lfUnderline |
An underline font if set to TRUE. |
lfStrikeout |
A strikeout font if set to TRUE. |
lfCharSet |
The character set. |
lfOutPrecision |
Defines how closely the output must match the requested font’s height, width, character orientation, escapement, pitch, and font type. |
lfClipPrecision |
Defines how to clip characters that are partially outside the clipping region. |
lfQuality |
Defines how carefully the graphics device interface must attempt to match the logical-font attributes to those of an actual physical font. |
lfPitchAndFamily |
The pitch and family of a font. |
lfFaceName |
A null-terminated string that specifies the font typeface name. |