TryAddCharacters
Try adding the characters from the provided string to the font asset.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.TextCore.Text
- Assembly: UnityEngine.TextCoreTextEngineModule
TryAddCharacters(uint[], bool)
Try adding the characters from the provided string to the font asset.
public bool TryAddCharacters(uint[] unicodes, bool includeFontFeatures = false)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if all the characters were successfully added to the font asset. Return false otherwise. |
TryAddCharacters(uint[], uint[], bool)
Try adding the characters from the provided string to the font asset.
public bool TryAddCharacters(uint[] unicodes, out uint[] missingUnicodes, bool includeFontFeatures = false)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if all the characters were successfully added to the font asset. Return false otherwise. |
TryAddCharacters(string, bool)
Try adding the characters from the provided string to the font asset.
public bool TryAddCharacters(string characters, bool includeFontFeatures = false)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if all the characters were successfully added to the font asset. Return false otherwise. |
TryAddCharacters(string, string, bool)
Try adding the characters from the provided string to the font asset.
public bool TryAddCharacters(string characters, out string missingCharacters, bool includeFontFeatures = false)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if all the characters were successfully added to the font asset. Return false otherwise. |