기술 자료

Unity Engine

Unity Engine

TryAddCharacters

Try adding the characters from the provided string to the font asset.
읽는 시간 1분최근 업데이트: 한 달 전

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.