# HasCharacters

> Function to check if certain characters exists in the font asset. Function returns a list of missing characters.

## Definition

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

## HasCharacters(string, List\<char>)

Function to check if certain characters exists in the font asset. Function returns a list of missing characters.

```csharp
public bool HasCharacters(string text, out List<char> missingCharacters)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): String containing the characters to check.**** (\[List\<char>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)): List of missing characters.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

## HasCharacters(string, uint\[], bool, bool)

Function to check if the characters in the given string are contained in the font asset with the option to also check its potential local fallbacks.

```csharp
public bool HasCharacters(string text, out uint[] missingCharacters, bool searchFallbacks = false, bool tryAddCharacter = false)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): String containing the characters to check.**** (\[uint\[]]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Array containing the unicode values of the missing characters.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Determines if fallback font assets assigned to this font asset should be searched.**** (\[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 requested characters are available in the font asset and potential fallbacks. |

## HasCharacters(string)

Function to check if certain characters exists in the font asset. Function returns false if any characters are missing.

```csharp
public bool HasCharacters(string text)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): String containing the characters to check

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
