ImageGear for C and C++ on Windows v19.8 - Updated
AT_LOGFONT
API Reference Guide > Core Component API Reference > Core Component Structures Reference > AT_LOGFONT

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:

Name Type Description

lfHeight

AT_INT32

The height of the font's character cell or character. Expressed in logical units.

Also known as the height.

lfWidth

AT_INT32

The average width of characters in the font. Expressed in logical units.

lfEscapement

AT_INT32

The angle between the escapement vector and the x-axis of the device. Expressed in tenths of degrees.

lfOrientation

AT_INT32

The angle between each character’s base line and the x-axis of the device. Expressed in tenths of degrees.

lfWeight

AT_INT32

The weight of the font in the range 0 through 1000. If this value is 0 then the default weight is used.

lfItalic

AT_BYTE

An italic font if set to TRUE.

lfUnderline

AT_BYTE

An underline font if set to TRUE.

lfStrikeout

AT_BYTE

A strikeout font if set to TRUE.

lfCharSet

AT_BYTE

The character set.

lfOutPrecision

AT_BYTE

Defines how closely the output must match the requested font’s height, width, character orientation, escapement, pitch, and font type.

lfClipPrecision

AT_BYTE

Defines how to clip characters that are partially outside the clipping region.

lfQuality

AT_BYTE

Defines how carefully the graphics device interface must attempt to match the logical-font attributes to those of an actual physical font.

lfPitchAndFamily

AT_BYTE

The pitch and family of a font.

lfFaceName

AT_CHAR

A null-terminated string that specifies the font typeface name.