Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryAddCharacters

Try adding the characters from the provided string to the font asset.
Read time 1 minuteLast updated 12 days ago

Definition

TryAddCharacters(uint[], bool)

Try adding the characters from the provided string to the font asset.
public bool TryAddCharacters(uint[] unicodes, bool includeFontFeatures = false)

Parameters

unicodes

Array that contains the characters to add to the font asset.

includeFontFeatures

Returns

Type

Description

boolReturns 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

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.

includeFontFeatures

Returns

Type

Description

boolReturns 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

characters

String containing the characters to add to the font asset.

includeFontFeatures

Returns

Type

Description

boolReturns 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

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.

includeFontFeatures

Returns

Type

Description

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