LOGFONT

  Examples > Access to Entities > Visual Basic > Types >

LOGFONT

Previous pageReturn to chapter overviewNext page

The LOGFONT type contains font parameters.

 

Syntax

 

Type LOGFONT

        lfHeight As Long

        lfWidth As Long

        lfEscapement As Long

        lfOrientation As Long

        lfWeight As Long

        lfItalic As Byte

        lfUnderline As Byte

        lfStrikeOut As Byte

        lfCharSet As Byte

        lfOutPrecision As Byte

        lfClipPrecision As Byte

        lfQuality As Byte

        lfPitchAndFamily As Byte

        lfFaceName(LF_FACESIZE) As Byte

End Type

 

 

Parameters

 

lfHeight

Specifies 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.

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.

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.

lfOrientation

Specifies the angle, in tenths of degrees, between each character's base line and the x-axis of the device.

lfWeight

Specifies the weight of the font in the range from 0 to 1000. For example, 400 is normal and 700 is bold. If this value is zero, a default weight is used.

lfItalic

Specifies the italic font if it set to TRUE.

lfUnderline

Specifies the underlined font if it set to TRUE.

lfStrikeOut

Specifies the strikeout font if it set to TRUE.

lfCharSet

Specifies the character set.

lfOutPrecision

Specifies the output precision. The output precision defines how closely the output must match the requested font height, width, character orientation, escapement, pitch and font type.

lfClipPrecision

Specifies the clipping precision. The clipping precision defines how to clip characters that are partially outside the clipping region.

lfQuality

Specifies the output quality.

lfPitchAndFamily

Specifies the pitch and family of the font.

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.

 

 

See Also

CADData  | CADExtendedData  | CADParam  | CADPoint  | POINTAPI  | RECT   | RECTAPI  


© 2003-2024 CADSoftTools

 

Go to CAD DLL