Method TryAddCharacters
TryAddCharacters(uint[], bool)
Try adding the characters from the provided string to the font asset.
Declaration
public bool TryAddCharacters(uint[] unicodes, bool includeFontFeatures = false)
Parameters
Type | Name | Description |
---|---|---|
uint[] | unicodes | Array that contains the characters to add to the font asset. |
bool | includeFontFeatures |
Returns
Type | Description |
---|---|
bool | Returns true if all the characters were successfully added to the font asset. Return false otherwise. |
TryAddCharacters(uint[], out uint[], bool)
Try adding the characters from the provided string to the font asset.
Declaration
public bool TryAddCharacters(uint[] unicodes, out uint[] missingUnicodes, bool includeFontFeatures = false)
Parameters
Type | Name | Description |
---|---|---|
uint[] | unicodes | Array that contains the characters to add to the font asset. |
uint[] | missingUnicodes | Array containing the characters that could not be added to the font asset. |
bool | includeFontFeatures |
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.
Declaration
public bool TryAddCharacters(string characters, bool includeFontFeatures = false)
Parameters
Type | Name | Description |
---|---|---|
string | characters | String containing the characters to add to the font asset. |
bool | includeFontFeatures |
Returns
Type | Description |
---|---|
bool | Returns true if all the characters were successfully added to the font asset. Return false otherwise. |
TryAddCharacters(string, out string, bool)
Try adding the characters from the provided string to the font asset.
Declaration
public bool TryAddCharacters(string characters, out string missingCharacters, bool includeFontFeatures = false)
Parameters
Type | Name | Description |
---|---|---|
string | characters | String containing the characters to add to the font asset. |
string | missingCharacters | String containing the characters that could not be added to the font asset. |
bool | includeFontFeatures |
Returns
Type | Description |
---|---|
bool | Returns true if all the characters were successfully added to the font asset. Return false otherwise. |