docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_FontUtilities

    Inheritance
    System.Object
    TMP_FontUtilities
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: TMPro
    Syntax
    public static class TMP_FontUtilities

    Methods

    SearchForGlyph(List<TMP_FontAsset>, Int32, out TMP_Glyph)

    Search through the given list of fonts and their possible fallbacks for the specified character.

    Declaration
    public static TMP_FontAsset SearchForGlyph(List<TMP_FontAsset> fonts, int character, out TMP_Glyph glyph)
    Parameters
    Type Name Description
    System.Collections.Generic.List<TMP_FontAsset> fonts
    System.Int32 character
    TMP_Glyph glyph
    Returns
    Type Description
    TMP_FontAsset

    SearchForGlyph(TMP_FontAsset, Int32, out TMP_Glyph)

    Search through the given font and its fallbacks for the specified character.

    Declaration
    public static TMP_FontAsset SearchForGlyph(TMP_FontAsset font, int character, out TMP_Glyph glyph)
    Parameters
    Type Name Description
    TMP_FontAsset font

    The font asset to search for the given character.

    System.Int32 character

    The character to find.

    TMP_Glyph glyph

    out parameter containing the glyph for the specified character (if found).

    Returns
    Type Description
    TMP_FontAsset
    Back to top
    Copyright © 2025 Unity Technologies
    • 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 02 April 2025