Struct CharacterInfo | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct CharacterInfo

    Use CharacterInfo to create glyph metrics for a bitmap font.

    Namespace: Unity.Tiny.Text
    Syntax
    public struct CharacterInfo

    Fields

    advance

    The horizontal distance, in pixels, from this character's origin to the next character's origin.

    Declaration
    public float advance
    Field Value
    Type Description
    System.Single

    bearingX

    The horizontal distance in pixels from this glyph's origin to the beginning of the glyph image.

    Declaration
    public float bearingX
    Field Value
    Type Description
    System.Single

    bearingY

    The vertical distance in pixels from the baseline to the glyph's ymax (top of the glyph bounding box).

    Declaration
    public float bearingY
    Field Value
    Type Description
    System.Single

    characterRegion

    The glyph's uv coordinates in the texture atlas. x, y is bottom left.

    Declaration
    public Rect characterRegion
    Field Value
    Type Description
    Rect

    height

    The height of the glyph image.

    Declaration
    public float height
    Field Value
    Type Description
    System.Single

    value

    UTF-32 character value of the glyph.

    Declaration
    public uint value
    Field Value
    Type Description
    System.UInt32

    width

    The width of the glyph image.

    Declaration
    public float width
    Field Value
    Type Description
    System.Single
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023