Jaa


LOGFONTW structure

Defines the attributes of a font.

Syntax

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

Members

  • lfHeight
    Value of type LONG that specifies the height, in logical units, of the font's character cell or character.

  • lfWidth
    Value of type LONG that specifies the width, in logical units, of characters in the font.

  • lfEscapement
    Value of type LONG 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
    Value of type LONG that specifies the angle, in tenths of degrees, between each character's base line and the x-axis of the device.

  • lfWeight
    Value of type LONG that specifies the weight of the font in the range from 0 through 1000.

  • lfItalic
    Value of type BYTE that specifies an italic font if set to TRUE.

  • lfUnderline
    Value of type BYTE that specifies an underlined font if set to TRUE.

  • lfStrikeOut
    Value of type BYTE that specifies a strikeout font if set to TRUE.

  • lfCharSet
    Value of type BYTE that specifies the character set.

  • lfOutPrecision
    Value of type BYTE 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
    Value of type BYTE that specifies the clipping precision. The clipping precision defines how to clip characters that are partially outside the clipping region.

  • lfQuality
    Value of type BYTE that specifies the output quality. The output quality defines how carefully the GDI must attempt to match the logical-font attributes to those of an actual physical font.

  • lfPitchAndFamily
    Value of type BYTE that specifies the pitch and family of the font.

  • lfFaceName
    Array of wide 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 Windows Software Development Kit (SDK).

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Dimm.h

IDL

Dimm.idl