Class EmfLogFont

Class EmfLogFont

Namespace: Aspose.Imaging.FileFormats.Emf.Emf.Objects
Assembly: Aspose.Imaging.dll (25.7.0)

The LogFont object specifies the basic attributes of a logical font.

public class EmfLogFont : EmfObject
{
    public EmfLogFont(EmfRecordCollection records)
        : base(records)
    {
    }
    public ushort LfFaceNameOffset;
    public ushort LfCharSet;
    public byte LfWeight;
    public byte LfItalic;
    public byte LfUnderline;
    public byte LfStrikeOut;
    public byte LfCharSetOver;
    public byte LfOutPrecision;
    public byte LfClipPrecision;
    public ushort LfQuality;
    public ushort LfPitchAndFamily;
    public ushort LfXHeight;
    public ushort LfCapHeight;
    public ushort LfBottomLine;
    public ushort LfAscent;
    public ushort LfWidth;
}

Inheritance

object MetaObject EmfObject EmfLogFont

Derived

EmfLogFontEx , EmfLogFontPanose

Inherited Members

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

EmfLogFont()

public EmfLogFont()
   {
   }

Properties

CharSet

Gets or sets an 8-bit unsigned integer that specifies the set of character glyphs. It MUSTbe a value in the WMF CharacterSet enumeration ([MS-WMF] section 2.1.1.5). If thecharacter set is unknown, metafile processing SHOULD NOT attempt to translate or interpretstrings that are rendered with that font.

public WmfCharacterSet CharSet
    {
        get;
        set;
    }

Property Value

WmfCharacterSet

ClipPrecision

Gets or sets an 8-bit unsigned integer that specifies the clipping precision. Theclipping precision defines how to clip characters that are partially outside the clipping region.It can be one or more of the WMF ClipPrecision Flags

public WmfClipPrecisionFlags ClipPrecision
   {
      get;
      set;
   }

Property Value

WmfClipPrecisionFlags

Escapement

Gets or sets a 32-bit signed integer that specifies the angle, in tenths of degrees,between the escapement vector and the x-axis of the device. The escapement vector isparallel to the baseline of a row of text.

public int Escapement
   {
      get;
      set;
   }

Property Value

int

Facename

Gets or sets a Facename (64 bytes): A string of no more than 32 Unicode characters that specifies thetypeface name of the font. If the length of this string is less than 32 characters, a terminatingNULL MUST be present, after which the remainder of this field MUST be ignored.

public string FirstName
    {
        get
        {
            return Facename;
        }
        set
        {
            Facename = value;
        }
    }

Property Value

string

Height

Gets or sets a 32-bit signed integer that specifies the height, in logical units, of the font’scharacter cell or character. The character height value, also known as the em size, is thecharacter cell height value minus the internal leading value. The font mapper SHOULDinterpret the value specified in the Height field in the following manner.

public int
       Height
   {
      get;
      set;
   }

Property Value

int

Italic

Gets or sets an 8-bit unsigned integer that specifies an italic font if set to 0x01; otherwise,it MUST be set to 0x00.

public byte Italic
{
    get;
    set;
}

Property Value

byte

Orientation

Gets or sets a 32-bit signed integer that specifies the angle, in tenths of degrees,between each character’s baseline and the x-axis of the device.

public int Orientation
    {
        get;
        set;
    }

Property Value

int

OutPrecision

Gets or sets an 8-bit unsigned integer that specifies the output precision. Theoutput precision defines how closely the font is required to match the requested height, width,character orientation, escapement, pitch, and font type. It MUST be a value from the WMFOutPrecision enumeration

public WmfOutPrecision OutPrecision
    {
        get;
        set;
    }

Property Value

WmfOutPrecision

PitchAndFamily

Gets or sets a WMF PitchAndFamily object ([MS-WMF] section 2.2.2.14) thatspecifies the pitch and family of the font. Font families describe the look of a font in a generalway. They are intended for specifying a font when the specified typeface is not available.

public WmfPitchAndFamily PitchAndFamily
   {
      get;
      set;
   }

Property Value

WmfPitchAndFamily

Quality

Gets or sets an 8-bit unsigned integer that specifies the output quality. The output qualitydefines how closely to attempt to match the logical-font attributes to those of an actualphysical font. It MUST be one of the values in the WMF FontQuality enumeration ([MS-WMF]section 2.1.1.10).

public WmfFontQuality Quality
   {
      get;
      set;
   }

Property Value

WmfFontQuality

Strikeout

Gets or sets an 8-bit unsigned integer that specifies a strikeout font if set to 0x01;otherwise, it MUST be set to 0x00.

public byte Strikeout
   {
      get;
      set;
   }

Property Value

byte

Underline

Gets or sets an 8-bit unsigned integer that specifies an underlined font if set to 0x01;otherwise, it MUST be set to 0x00.

public byte Underline
   {
      get;
      set;
   }

Property Value

byte

Weight

Gets or sets a 32-bit signed integer that specifies the weight of the font in the rangezero through 1000. For example, 400 is normal and 700 is bold. If this value is zero, a defaultweight can be used.

public EmfLogFontWeight Weight
   {
      get;
      set;
   }

Property Value

EmfLogFontWeight

Width

Gets or sets a 32-bit signed integer that specifies the average width, in logical units, ofcharacters in the font. If the Width field value is zero, an appropriate value SHOULD becalculated from other LogFont values to find a font that has the typographer’s intendedaspect ratio

public int Width
    {
        get;
        set;
    }

Property Value

int

 English