{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method GetCharacterFromFontAsset | TextMeshPro | 3.0.1
docs.unity3d.com
"{0}" の検索結果

    目次を表示する/隠す

    Method GetCharacterFromFontAsset

    GetCharacterFromFontAsset(uint, TMP_FontAsset, bool, FontStyles, FontWeight, out bool)

    Returns the text element (character) for the given unicode value taking into consideration the requested font style and weight. Function searches the source font asset, its list of font assets assigned as alternative typefaces and potentially its fallbacks. The font asset out parameter contains a reference to the font asset containing the character. The typeface type indicates whether the returned font asset is the source font asset, an alternative typeface or fallback font asset.

    Declaration
    public static TMP_Character GetCharacterFromFontAsset(uint unicode, TMP_FontAsset sourceFontAsset, bool includeFallbacks, FontStyles fontStyle, FontWeight fontWeight, out bool isAlternativeTypeface)
    Parameters
    Type Name Description
    uint unicode

    The unicode value of the requested character

    TMP_FontAsset sourceFontAsset

    The font asset to be searched

    bool includeFallbacks

    Include the fallback font assets in the search

    FontStyles fontStyle

    The font style

    FontWeight fontWeight

    The font weight

    bool isAlternativeTypeface

    Indicates if the OUT font asset is an alternative typeface or fallback font asset

    Returns
    Type Description
    TMP_Character
    概要
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)