Version: 2020.3

FontEngine.TryGetGlyphIndex

切换到手册
public static bool TryGetGlyphIndex (uint unicode, out uint glyphIndex);

参数

unicode 要查找字形索引的字符的 Unicode 值。
glyphIndex 给定 Unicode 字符的字形的索引,如果给定的 Unicode 值没有可用的字形,则为 .notdef 字形(索引为 0)。

返回

bool 如果给定的 Unicode 具有字形索引,则返回 true。

描述

尝试获取给定 Unicode 值的字符的字形索引。

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961