# TryAddCharacters

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

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.TextCore.Text](/engine/6000.7/script-reference/unityengine/textcore/text.md)
* **Assembly:** UnityEngine.TextCoreTextEngineModule

## TryAddCharacters(uint\[], bool)

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

```csharp
public bool TryAddCharacters(uint[] unicodes, bool includeFontFeatures = false)
```

### Parameters

**** (\[uint\[]]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Array that contains the characters to add to the font asset.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Returns

| Type                                                          | Description                                                                                           |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public bool TryAddCharacters(uint[] unicodes, out uint[] missingUnicodes, bool includeFontFeatures = false)
```

### Parameters

**** (\[uint\[]]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Array that contains the characters to add to the font asset.**** (\[uint\[]]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Array containing the characters that could not be added to the font asset.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Returns

| Type                                                          | Description                                                                                           |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public bool TryAddCharacters(string characters, bool includeFontFeatures = false)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): String containing the characters to add to the font asset.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Returns

| Type                                                          | Description                                                                                           |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | 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.

```csharp
public bool TryAddCharacters(string characters, out string missingCharacters, bool includeFontFeatures = false)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): String containing the characters to add to the font asset.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): String containing the characters that could not be added to the font asset.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Returns

| Type                                                          | Description                                                                                           |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if all the characters were successfully added to the font asset. Return false otherwise. |
