TryGetGlyphWithUnicodeValue(uint, GlyphLoadFlags, out Glyph)
Try loading a glyph for the given unicode value. If available, populates the glyph and returns true. Otherwise returns false and populates the glyph with the.notdef / missing glyph data.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.TextCore.LowLevel
- Assembly: UnityEngine.TextCoreFontEngineModule
TryGetGlyphWithUnicodeValue(uint, GlyphLoadFlags, Glyph)
public static bool TryGetGlyphWithUnicodeValue(uint unicode, GlyphLoadFlags flags, out Glyph glyph)
Parameters
The Unicode value of the character whose glyph should be loaded.
The glyph loading flag that should be used to load the glyph.
The glyph using the provided index or the .notdef glyph (index 0) if no glyph was found at that index.
Returns
Type | Description |
|---|---|
| bool | Returns true if a glyph exists for the given unicode value. Otherwise returns false. |