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

    Struct NativeFont

    Add this component to an entity to specify a native font.

    Namespace: Unity.Tiny.Text
    Syntax
    public struct NativeFont : IComponentData
    Remarks

    Generally you will want to use CreateNativeFont(EntityManager, FontName, String, Single) to create a NativeFont.

    Fields

    name

    Name of the font.

    Declaration
    public FontName name
    Field Value
    Type Description
    FontName

    status

    Font loading status

    Declaration
    public FontStatus status
    Field Value
    Type Description
    FontStatus

    worldUnitsToPt

    Multiplier for converting World units to Points. Fonts are rendered in points (pt).

    Declaration
    public float worldUnitsToPt
    Field Value
    Type Description
    System.Single

    Properties

    Default

    Declaration
    public static NativeFont Default { get; }
    Property Value
    Type Description
    NativeFont
    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