Search Results for

    Show / Hide Table of Contents

    Class Metrics

    The font metrics.

    Inheritance
    object
    Metrics
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Assets.AssetParts.Fonts
    Assembly: Evergine.Framework.dll
    Syntax
    public class Metrics

    Properties

    ascender

    Gets or sets the ascender.

    Declaration
    public float ascender { get; set; }
    Property Value
    Type Description
    float

    descender

    Gets or sets the descender.

    Declaration
    public float descender { get; set; }
    Property Value
    Type Description
    float

    emSize

    Gets or sets the emSize. Default value 1. Multiple per 0.75 convert to pixel.

    Declaration
    public int emSize { get; set; }
    Property Value
    Type Description
    int

    lineHeight

    Gets or sets the font line height.

    Declaration
    public float lineHeight { get; set; }
    Property Value
    Type Description
    float

    underlineThickness

    Gets or sets the underline thickness.

    Declaration
    public float underlineThickness { get; set; }
    Property Value
    Type Description
    float

    underlineY

    Gets or sets the underlineY.

    Declaration
    public float underlineY { get; set; }
    Property Value
    Type Description
    float

    Methods

    Read(BinaryReader)

    Read metrics data from binary file.

    Declaration
    public static Metrics Read(BinaryReader reader)
    Parameters
    Type Name Description
    BinaryReader reader

    The binary reader.

    Returns
    Type Description
    Metrics

    The read metrics object.

    Write(BinaryWriter)

    Write metrics data into binary file.

    Declaration
    public void Write(BinaryWriter writer)
    Parameters
    Type Name Description
    BinaryWriter writer

    The binary writer.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX