Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

FontAsset.TryAddCharacters

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public bool TryAddCharacters(uint[] unicodes, bool includeFontFeatures);

Parameters

Parameter Description
unicodes Array that contains the characters to add to the font asset.

Returns

bool Returns true if all the characters were successfully added to the font asset. Return false otherwise.

Description

Try adding the characters from the provided string to the font asset.


Declaration

public bool TryAddCharacters(uint[] unicodes, out uint[] missingUnicodes, bool includeFontFeatures);

Parameters

Parameter Description
unicodes Array that contains the characters to add to the font asset.
missingUnicodes Array containing the characters that could not be added to the font asset.

Returns

bool Returns true if all the characters were successfully added to the font asset. Return false otherwise.

Description

Try adding the characters from the provided string to the font asset.


Declaration

public bool TryAddCharacters(string characters, bool includeFontFeatures);

Parameters

Parameter Description
characters String containing the characters to add to the font asset.

Returns

bool Returns true if all the characters were successfully added to the font asset. Return false otherwise.

Description

Try adding the characters from the provided string to the font asset.


Declaration

public bool TryAddCharacters(string characters, out string missingCharacters, bool includeFontFeatures);

Parameters

Parameter Description
characters String containing the characters to add to the font asset.
missingCharacters String containing the characters that could not be added to the font asset.

Returns

bool Returns true if all the characters were successfully added to the font asset. Return false otherwise.

Description

Try adding the characters from the provided string to the font asset.