TryGetGlyphIndex(uint, out uint)
Tries to get the index of the glyph mapped to the given Unicode code point in the font asset's source font.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.TextCore.Text
- Assembly: UnityEngine.TextCoreTextEngineModule
TryGetGlyphIndex(uint, uint)
public bool TryGetGlyphIndex(uint unicode, out uint glyphIndex)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if the font has a glyph for the code point. Otherwise, returns false. |
Remarks
This is the nominal character-to-glyph mapping from the font's character map. Text shaping can substitute different glyphs at render time, for example for ligatures or complex scripts.