Version: 2022.3
LanguageEnglish
  • C#

FontEngineError

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Error code returned by the various FontEngine functions.

Properties

SuccessError code returned when the function was successfully executed.
Invalid_File_PathError code returned by the LoadFontFace function when the file path to the source font file appears invalid.
Invalid_File_FormatError code returned by the LoadFontFace function when the source font file is of an unknown or invalid format.
Invalid_File_StructureError code returned by the LoadFontFace function when the source font file appears invalid or improperly formatted.
Invalid_FileError code indicating an invalid font file.
Invalid_TableError code indicating failure to load one of the tables of the font file.
Invalid_Glyph_IndexError code returned by the LoadGlyph function when referencing an invalid or out of range glyph index value.
Invalid_Character_CodeError code returned by the LoadGlyph function when referencing an invalid Unicode character value.
Invalid_Pixel_SizeError code returned by the LoadGlyph or SetFaceSize functions using an invalid pointSize value.
Invalid_LibraryError code indicating failure to initialize the font engine library.
Invalid_FaceError code indicating an invalid font face.
Invalid_Library_or_FaceError code indicating failure to initialize the font engine library and / or successfully load a font face.
Atlas_Generation_CancelledError code returned when the FontEngine glyph packing or rendering process has been cancelled.
OpenTypeLayoutLookup_MismatchOpenType Layout related errors.