Version: 2019.4
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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961