# FontEngineError

> Error code returned by the various FontEngine functions.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.TextCore.LowLevel](/engine/6000.6/script-reference/unityengine/textcore/lowlevel.md)
* **Assembly:** UnityEngine.TextCoreFontEngineModule

```csharp
public enum FontEngineError
```

## Fields

| Value                                                                                                                                            | Description                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------- |
| [Atlas\_Generation\_Cancelled](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/atlas-generation-cancelled.md)      | Error code returned when the FontEngine glyph packing or rendering process has been cancelled.                      |
| [Invalid\_Character\_Code](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-character-code.md)              | Error code returned by the LoadGlyph function when referencing an invalid Unicode character value.                  |
| [Invalid\_Face](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-face.md)                                   | Error code indicating an invalid font face.                                                                         |
| [Invalid\_File](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-file.md)                                   | Error code indicating an invalid font file.                                                                         |
| [Invalid\_File\_Format](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-file-format.md)                    | Error code returned by the LoadFontFace function when the source font file is of an unknown or invalid format.      |
| [Invalid\_File\_Path](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-file-path.md)                        | Error code returned by the LoadFontFace function when the file path to the source font file appears invalid.        |
| [Invalid\_File\_Structure](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-file-structure.md)              | Error code returned by the LoadFontFace function when the source font file appears invalid or improperly formatted. |
| [Invalid\_FontFaceHandle](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-fontfacehandle.md)               | Error code returned when referencing an invalid or uninitialized font face handle.                                  |
| [Invalid\_Glyph\_Index](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-glyph-index.md)                    | Error code returned by the LoadGlyph function when referencing an invalid or out of range glyph index value.        |
| [Invalid\_Library](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-library.md)                             | Error code indicating failure to initialize the font engine library.                                                |
| [Invalid\_Library\_or\_Face](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-library-or-face.md)           | Error code indicating failure to initialize the font engine library and / or successfully load a font face.         |
| [Invalid\_Pixel\_Size](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-pixel-size.md)                      | Error code returned by the LoadGlyph or SetFaceSize functions using an invalid pointSize value.                     |
| [Invalid\_Table](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/invalid-table.md)                                 | Error code indicating failure to load one of the tables of the font file.                                           |
| [OpenTypeLayoutLookup\_Mismatch](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/opentypelayoutlookup-mismatch.md) | OpenType Layout related errors.                                                                                     |
| [Success](/engine/6000.6/script-reference/unityengine/textcore/lowlevel/fontengineerror/success.md)                                              | Error code returned when the function was successfully executed.                                                    |
