Search Results for

    Show / Hide Table of Contents

    Struct FontCharacterEntry

    The cached font character entry (read for rendering and further processing).

    Assembly: FlaxEngine.dll
    File: Engine/Render2D/Font.h
    Syntax
    public struct FontCharacterEntry

    Fields

    AdvanceX

    The amount to advance in X before drawing the next character in a string.

    Declaration
    public int16 AdvanceX
    Field Value
    int16

    BearingY

    The distance from baseline to glyph top most point.

    Declaration
    public int16 BearingY
    Field Value
    int16

    Character

    The character represented by this entry.

    Declaration
    public Char Character
    Field Value
    Char

    Font

    The owner font.

    Declaration
    public class Font* Font
    Field Value
    class Font

    Height

    The height in pixels of the glyph.

    Declaration
    public int16 Height
    Field Value
    int16

    IsValid

    True if entry is valid, otherwise false.

    Declaration
    public bool IsValid = false
    Field Value
    bool

    OffsetX

    The left bearing expressed in integer pixels.

    Declaration
    public int16 OffsetX
    Field Value
    int16

    OffsetY

    The top bearing expressed in integer pixels.

    Declaration
    public int16 OffsetY
    Field Value
    int16

    Slot

    The slot in texture atlas, containing the pixel data of the glyph.

    Declaration
    public FontTextureAtlasSlot* Slot
    Field Value
    FontTextureAtlasSlot

    TextureIndex

    The index to a specific texture in the font cache.

    Declaration
    public byte TextureIndex
    Field Value
    byte

    UV

    The start location of the character in the texture (in texture coordinates space).

    Declaration
    public Float2 UV
    Field Value
    Float2

    UVSize

    The size the character in the texture (in texture coordinates space).

    Declaration
    public Float2 UVSize
    Field Value
    Float2

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat