# GetCharacterInfo(char, out CharacterInfo, int, FontStyle)

> Get rendering info for a specific character.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TextRenderingModule

## GetCharacterInfo(char, CharacterInfo, int, FontStyle)

```csharp
public bool GetCharacterInfo(char ch, out CharacterInfo info, int size, FontStyle style)
```

### Parameters

**** (\[char]\(https\://learn.microsoft.com/dotnet/api/system.char)): The character you need rendering information for.**** (\[CharacterInfo]\(/engine/6000.6/script-reference/unityengine/characterinfo)): Returns the CharacterInfo struct with the rendering information for the character (if available).**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The size of the character (default value of zero will use font default size).**** (\[FontStyle]\(/engine/6000.6/script-reference/unityengine/fontstyle)): The style of the character.

### Returns

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

### Remarks

Note: You should only ever need to use this when you want to implement your own text rendering. If the character `ch` with the specified `size` and `style` is present in the font texture, then this method will return true, and info will contain the texture placement information for that character. If the character is not present, this method returns false. If `size` is zero, it will use the default size for the font.

Additional Resources: [Font.characterInfo](/engine/6000.6/script-reference/unityengine/font/characterinfo.md). Example at [Font.RequestCharactersInTexture](/engine/6000.6/script-reference/unityengine/font/requestcharactersintexture.md).
