Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    Glyph Class

    Namespace: Stride.Graphics.Font
    Assembly: Stride.dll

    Description of a glyph (a single character)

    System.Object → Glyph
    Derived from Glyph:

    [DataContract]
    public class Glyph
    Name Description
    Fields
    BitmapIndex

    Index of the bitmap.

    Character

    Unicode codepoint.

    Offset

    Layout information.

    Subrect

    Glyph image data (may only use a portion of a larger bitmap).

    XAdvance

    Advance X

    | Improve this Doc View Source

    Fields


    BitmapIndex

    Index of the bitmap.

    public int BitmapIndex
    Field Value
    Type Description
    System.Int32

    Character

    Unicode codepoint.

    public int Character
    Field Value
    Type Description
    System.Int32

    Offset

    Layout information.

    public Vector2 Offset
    Field Value
    Type Description
    Vector2

    Subrect

    Glyph image data (may only use a portion of a larger bitmap).

    public Rectangle Subrect
    Field Value
    Type Description
    Rectangle

    XAdvance

    Advance X

    public float XAdvance
    Field Value
    Type Description
    System.Single

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation