• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.Fonts
      • ColorFontSupport
      • Font
      • FontCollection
      • FontDescription
      • FontFamily
      • FontFamilyCollectionExtensions
      • FontInstance
      • FontRectangle
      • FontStyle
      • Glyph
      • GlyphColor
      • GlyphInstance
      • GlyphMetric
      • GlyphRendererParameters
      • GlyphType
      • HorizontalAlignment
      • IColorGlyphRenderer
      • IFontCollection
      • IFontInstance
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • IReadOnlyFontCollection
      • IReadonlyFontCollectionExtensions
      • RendererOptions
      • SystemFonts
      • TextMeasurer
      • TextRenderer
      • VerticalAlignment
    • SixLabors.Fonts.Exceptions
      • FontException
      • FontFamilyNotFoundException
      • GlyphMissingException
      • InvalidFontFileException
      • InvalidFontTableException
      • MissingFontTableException

    Struct GlyphMetric

    Represents a Glyph metric.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    Object.Equals(Object, Object)
    Object.GetType()
    Object.ReferenceEquals(Object, Object)
    Namespace: SixLabors.Fonts
    Assembly: SixLabors.Fonts.dll
    Syntax
    public readonly struct GlyphMetric

    Constructors

    | Improve this Doc View Source

    GlyphMetric(Int32, FontRectangle, Boolean)

    Initializes a new instance of the GlyphMetric struct.

    Declaration
    public GlyphMetric(int codePoint, FontRectangle bounds, bool isControlCharacter)
    Parameters
    Type Name Description
    Int32 codePoint

    Unicode codepoint of the character.

    FontRectangle bounds

    The bounds.

    Boolean isControlCharacter

    Whether the character is a control character.

    Properties

    | Improve this Doc View Source

    Bounds

    Gets the character bounds.

    Declaration
    public readonly FontRectangle Bounds { get; }
    Property Value
    Type Description
    FontRectangle
    | Improve this Doc View Source

    Character

    Gets the UTF-16 encoded character.

    Declaration
    public readonly string Character { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Codepoint

    Gets the Unicode codepoint of the character.

    Declaration
    public readonly int Codepoint { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    IsControlCharacter

    Gets a value indicating whether the character is a control character.

    Declaration
    public readonly bool IsControlCharacter { get; }
    Property Value
    Type Description
    Boolean

    Methods

    | Improve this Doc View Source

    ToString()

    Declaration
    public override readonly string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX