From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Library:FreeType" |
|---|
| claim | "FreeType functions return FT_Error (int), 0 on success. The codes are generic across modules: 0x01 Cannot_Open_Resource, 0x02 Unknown_File_Format (no driver accepted the file), 0x03 Invalid_File_Format, 0x06 Invalid_Argument, 0x10 Invalid_Glyph_Index, 0x17 Invalid_Pixel_Size, 0x23 Invalid_Face_Handle, 0x40 Out_Of_Memory, 0x80-0x9E TrueType bytecode and table errors, 0xA0-0xA4 CFF/Type 1, 0xB0-0xBA BDF/PCF. A module error base can be added in the high byte when FT_CONFIG_OPTION_USE_MODULE_ERRORS is defined (off by default)." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:FreeType" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "FT_Error" |
|---|
| underlying_type | "int" |
|---|
| values | | FT_Err_Ok | 0 |
|---|
| FT_Err_Cannot_Open_Resource | 1 |
|---|
| FT_Err_Unknown_File_Format | 2 |
|---|
| FT_Err_Invalid_File_Format | 3 |
|---|
| FT_Err_Invalid_Version | 4 |
|---|
| FT_Err_Lower_Module_Version | 5 |
|---|
| FT_Err_Invalid_Argument | 6 |
|---|
| FT_Err_Unimplemented_Feature | 7 |
|---|
| FT_Err_Invalid_Table | 8 |
|---|
| FT_Err_Invalid_Offset | 9 |
|---|
| FT_Err_Array_Too_Large | 10 |
|---|
| FT_Err_Missing_Module | 11 |
|---|
| FT_Err_Missing_Property | 12 |
|---|
| FT_Err_Invalid_Glyph_Index | 16 |
|---|
| FT_Err_Invalid_Character_Code | 17 |
|---|
| FT_Err_Invalid_Glyph_Format | 18 |
|---|
| FT_Err_Cannot_Render_Glyph | 19 |
|---|
| FT_Err_Invalid_Outline | 20 |
|---|
| FT_Err_Invalid_Composite | 21 |
|---|
| FT_Err_Too_Many_Hints | 22 |
|---|
| FT_Err_Invalid_Pixel_Size | 23 |
|---|
| FT_Err_Invalid_SVG_Document | 24 |
|---|
| FT_Err_Invalid_Handle | 32 |
|---|
| FT_Err_Invalid_Library_Handle | 33 |
|---|
| FT_Err_Invalid_Driver_Handle | 34 |
|---|
| FT_Err_Invalid_Face_Handle | 35 |
|---|
| FT_Err_Invalid_Size_Handle | 36 |
|---|
| FT_Err_Invalid_Slot_Handle | 37 |
|---|
| FT_Err_Invalid_CharMap_Handle | 38 |
|---|
| FT_Err_Invalid_Cache_Handle | 39 |
|---|
| FT_Err_Invalid_Stream_Handle | 40 |
|---|
| FT_Err_Too_Many_Drivers | 48 |
|---|
| FT_Err_Too_Many_Extensions | 49 |
|---|
| FT_Err_Out_Of_Memory | 64 |
|---|
| FT_Err_Unlisted_Object | 65 |
|---|
| FT_Err_Cannot_Open_Stream | 81 |
|---|
| FT_Err_Invalid_Stream_Seek | 82 |
|---|
| FT_Err_Invalid_Stream_Skip | 83 |
|---|
| FT_Err_Invalid_Stream_Read | 84 |
|---|
| FT_Err_Invalid_Stream_Operation | 85 |
|---|
| FT_Err_Invalid_Frame_Operation | 86 |
|---|
| FT_Err_Nested_Frame_Access | 87 |
|---|
| FT_Err_Invalid_Frame_Read | 88 |
|---|
| FT_Err_Raster_Uninitialized | 96 |
|---|
| FT_Err_Raster_Corrupted | 97 |
|---|
| FT_Err_Raster_Overflow | 98 |
|---|
| FT_Err_Raster_Negative_Height | 99 |
|---|
| FT_Err_Too_Many_Caches | 112 |
|---|
| FT_Err_Invalid_Opcode | 128 |
|---|
| FT_Err_Too_Few_Arguments | 129 |
|---|
| FT_Err_Stack_Overflow | 130 |
|---|
| FT_Err_Code_Overflow | 131 |
|---|
| FT_Err_Bad_Argument | 132 |
|---|
| FT_Err_Divide_By_Zero | 133 |
|---|
| FT_Err_Invalid_Reference | 134 |
|---|
| FT_Err_Debug_OpCode | 135 |
|---|
| FT_Err_ENDF_In_Exec_Stream | 136 |
|---|
| FT_Err_Nested_DEFS | 137 |
|---|
| FT_Err_Invalid_CodeRange | 138 |
|---|
| FT_Err_Execution_Too_Long | 139 |
|---|
| FT_Err_Too_Many_Function_Defs | 140 |
|---|
| FT_Err_Too_Many_Instruction_Defs | 141 |
|---|
| FT_Err_Table_Missing | 142 |
|---|
| FT_Err_Horiz_Header_Missing | 143 |
|---|
| FT_Err_Locations_Missing | 144 |
|---|
| FT_Err_Name_Table_Missing | 145 |
|---|
| FT_Err_CMap_Table_Missing | 146 |
|---|
| FT_Err_Hmtx_Table_Missing | 147 |
|---|
| FT_Err_Post_Table_Missing | 148 |
|---|
| FT_Err_Invalid_Horiz_Metrics | 149 |
|---|
| FT_Err_Invalid_CharMap_Format | 150 |
|---|
| FT_Err_Invalid_PPem | 151 |
|---|
| FT_Err_Invalid_Vert_Metrics | 152 |
|---|
| FT_Err_Could_Not_Find_Context | 153 |
|---|
| FT_Err_Invalid_Post_Table_Format | 154 |
|---|
| FT_Err_Invalid_Post_Table | 155 |
|---|
| FT_Err_DEF_In_Glyf_Bytecode | 156 |
|---|
| FT_Err_Missing_Bitmap | 157 |
|---|
| FT_Err_Missing_SVG_Hooks | 158 |
|---|
| FT_Err_Syntax_Error | 160 |
|---|
| FT_Err_Stack_Underflow | 161 |
|---|
| FT_Err_Ignore | 162 |
|---|
| FT_Err_No_Unicode_Glyph_Name | 163 |
|---|
| FT_Err_Glyph_Too_Big | 164 |
|---|
| FT_Err_Missing_Startfont_Field | 176 |
|---|
| FT_Err_Missing_Font_Field | 177 |
|---|
| FT_Err_Missing_Size_Field | 178 |
|---|
| FT_Err_Missing_Fontboundingbox_Field | 179 |
|---|
| FT_Err_Missing_Chars_Field | 180 |
|---|
| FT_Err_Missing_Startchar_Field | 181 |
|---|
| FT_Err_Missing_Encoding_Field | 182 |
|---|
| FT_Err_Missing_Bbx_Field | 183 |
|---|
| FT_Err_Bbx_Too_Big | 184 |
|---|
| FT_Err_Corrupted_Font_Header | 185 |
|---|
| FT_Err_Corrupted_Font_Glyphs | 186 |
|---|
|
|---|
| complete | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "FT_NOERRORDEF_( Ok, 0x00 ) and FT_ERRORDEF_( <name>, <code>, <text> ) for every code" |
|---|
| repo | "https://github.com/freetype/freetype" |
|---|
| commit | "37515cf56ba3349656049edbed89ffc6f6466f2d" |
|---|
| path | "include/freetype/fterrdef.h" |
|---|
| lines | "58-277" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "FT_Error codes" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T15:56:46.206Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T16:07:03.485Z" |
|---|
| summary | "Use FreeType's real constant names (FT_Err_ prefix, as generated by FT_ERRORDEF_) so export_header emits FT_Err_Cannot_Open_Resource etc. instead of unprefixed names that could clash; values unchanged" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T17:10:59.281Z" |
|---|
| summary | "All 95 codes (FT_Err_Ok 0x00 to Corrupted_Font_Glyphs 0xBA) checked against fterrdef.h lines 58-277: names and values match; nothing missing, so set complete true. The module-error remark was…" |
|---|
| changed | |
|---|
|
|
|---|