details. * include/freetype/internal/cfferrs.h, include/freetype/internal/tterrors.h, include/freetype/internal/t1errors.h: Removed. Replaced with files local to the module. All extra error codes have been moved to `fterrors.h'. * src/sfnt/ttpost.h: Move error codes to `fterrors.h'. * src/autohint/aherrors.h, src/cache/ftcerror.h, src/cff/cfferrs.h, src/cid/ciderrs.h, src/pcf/pcferror.h, src/psaux/psauxerr.h, src/psnames/psnamerr.h, src/raster/rasterrs.h, src/sfnt/sferrors.h, src/smooth/ftsmerrs.h, src/truetype/tterrors.h, src/type1/t1errors.h, src/winfonts/fnterrs.h: New files defining the error names for the module it belongs to. * include/freetype/ftmoderr.h: New file, defining the module error offsets. Its structure is similar to `fterrors.h'. * include/freetype/fterrors.h (FT_NOERRORDEF): New macro. (FT_ERRORDEF): Redefined to use module error offsets. All internal error codes are now public; unused error codes have been removed, some are new. * include/freetype/config/ftheader.h (FT_MODULE_ERRORS_H): New macro. * include/freetype/config/ftoption.h (FT_CONFIG_OPTION_USE_MODULE_ERRORS): New macro. All other source files have been updated to use the new error codes; some already existing (internal) error codes local to a module have been renamed to give them the same name as in the base module. All make files have been updated to include the local error files. * src/cid/cidtokens.h: Replaced with... * src/cid/cidtoken.h: This file for 8+3 consistency. * src/raster/ftraster.c: Use macros for header file names.VER-2-0-4-PATCH
parent
be0924aacc
commit
442b0910b9
84 changed files with 1191 additions and 625 deletions
@ -0,0 +1,123 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* ftmoderr.h */ |
||||
/* */ |
||||
/* FreeType module error offsets (specification). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the FreeType module error offsets. */ |
||||
/* */ |
||||
/* The lower byte gives the error code, the higher byte gives the */ |
||||
/* module. The base module has error offset 0. For example, the error */ |
||||
/* `FT_Err_Invalid_File_Format' has value 0x003, the error */ |
||||
/* `TT_Err_Invalid_File_Format' has value 0xB03, the error */ |
||||
/* `T1_Err_Invalid_File_Format' has value 0xC03, etc. */ |
||||
/* */ |
||||
/* Undefine the macro FT_CONFIG_OPTION_USE_MODULE_ERRORS in ftoption.h */ |
||||
/* to make the higher byte always zero (disabling the module error */ |
||||
/* mechanism). */ |
||||
/* */ |
||||
/* It can also be used to create a module error message table easily */ |
||||
/* with something like */ |
||||
/* */ |
||||
/* { */ |
||||
/* #undef __FTMODERR_H__ */ |
||||
/* #define FT_MODERRDEF( e, v, s ) { FT_Mod_Err_ ## e, s }, */ |
||||
/* #define FT_MODERR_START_LIST { */ |
||||
/* #define FT_MODERR_END_LIST { 0, 0 } }; */ |
||||
/* */ |
||||
/* const struct */ |
||||
/* { */ |
||||
/* int mod_err_offset; */ |
||||
/* const char* mod_err_msg */ |
||||
/* } ft_mod_errors[] = */ |
||||
/* */ |
||||
/* #include FT_MODULE_ERRORS_H */ |
||||
/* } */ |
||||
/* */ |
||||
/* To use such a table, all errors must be ANDed with 0xFF00 to remove */ |
||||
/* the error code. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
|
||||
#ifndef __FTMODERR_H__ |
||||
#define __FTMODERR_H__ |
||||
|
||||
|
||||
#undef FT_NEED_EXTERN_C |
||||
|
||||
|
||||
|
||||
|
||||
#ifndef FT_MODERRDEF |
||||
|
||||
#ifdef FT_CONFIG_OPTION_USE_MODULE_ERRORS |
||||
#define FT_MODERRDEF( e, v, s ) FT_Mod_Err_ ## e = v, |
||||
#else |
||||
#define FT_MODERRDEF( e, v, s ) FT_Mod_Err_ ## e = 0, |
||||
#endif |
||||
|
||||
#define FT_MODERR_START_LIST enum { |
||||
#define FT_MODERR_END_LIST FT_Mod_Err_Max }; |
||||
|
||||
#ifdef __cplusplus |
||||
#define FT_NEED_EXTERN_C |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#endif /* !FT_MODERRDEF */ |
||||
|
||||
|
||||
#ifdef FT_MODERR_START_LIST |
||||
FT_MODERR_START_LIST |
||||
#endif |
||||
|
||||
|
||||
FT_MODERRDEF( Base, 0x000, "base module" ) |
||||
FT_MODERRDEF( Autohint, 0x100, "autohinter module" ) |
||||
FT_MODERRDEF( Cache, 0x200, "cache module" ) |
||||
FT_MODERRDEF( CFF, 0x300, "CFF module" ) |
||||
FT_MODERRDEF( CID, 0x400, "CID module" ) |
||||
FT_MODERRDEF( PCF, 0x500, "PCF module" ) |
||||
FT_MODERRDEF( PSaux, 0x600, "PS auxiliary module" ) |
||||
FT_MODERRDEF( PSnames, 0x700, "PS names module" ) |
||||
FT_MODERRDEF( Raster, 0x800, "raster module" ) |
||||
FT_MODERRDEF( SFNT, 0x900, "SFNT module" ) |
||||
FT_MODERRDEF( Smooth, 0xA00, "smooth raster module" ) |
||||
FT_MODERRDEF( TrueType, 0xB00, "TrueType module" ) |
||||
FT_MODERRDEF( Type1, 0xC00, "Type 1 module" ) |
||||
FT_MODERRDEF( Winfonts, 0xD00, "Windows FON/FNT module" ) |
||||
|
||||
|
||||
#ifdef FT_MODERR_END_LIST |
||||
FT_MODERR_END_LIST |
||||
#endif |
||||
|
||||
|
||||
#undef FT_MODERR_START_LIST |
||||
#undef FT_MODERR_END_LIST |
||||
#undef FT_MODERRDEF |
||||
|
||||
|
||||
#ifdef FT_NEED_EXTERN_C |
||||
} |
||||
#endif |
||||
|
||||
#endif /* __FTMODERR_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -1,136 +0,0 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* cfferrs.h */ |
||||
/* */ |
||||
/* OpenType error ID definitions (specification only). */ |
||||
/* */ |
||||
/* Copyright 1996-2000 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
#ifndef __CFFERRORS_H__ |
||||
#define __CFFERRORS_H__ |
||||
|
||||
|
||||
#include <ft2build.h> |
||||
|
||||
|
||||
FT_BEGIN_HEADER |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* Error codes declaration */ |
||||
/* */ |
||||
/* The error codes are grouped in `classes' used to indicate the `level' */ |
||||
/* at which the error happened. The class is given by an error code's */ |
||||
/* high byte. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
|
||||
/* Success is always 0. */ |
||||
|
||||
#define CFF_Err_Ok FT_Err_Ok |
||||
|
||||
/* High level API errors. */ |
||||
|
||||
#define CFF_Err_Unknown_File_Format FT_Err_Unknown_File_Format |
||||
#define CFF_Err_Invalid_File_Format FT_Err_Invalid_File_Format |
||||
#define CFF_Err_Invalid_Argument FT_Err_Invalid_Argument |
||||
#define CFF_Err_Invalid_Driver_Handle FT_Err_Invalid_Driver_Handle |
||||
#define CFF_Err_Invalid_Face_Handle FT_Err_Invalid_Face_Handle |
||||
#define CFF_Err_Invalid_Instance_Handle FT_Err_Invalid_Size_Handle |
||||
#define CFF_Err_Invalid_Glyph_Handle FT_Err_Invalid_Slot_Handle |
||||
#define CFF_Err_Invalid_CharMap_Handle FT_Err_Invalid_CharMap_Handle |
||||
#define CFF_Err_Invalid_Glyph_Index FT_Err_Invalid_Glyph_Index |
||||
|
||||
#define CFF_Err_Unimplemented_Feature FT_Err_Unimplemented_Feature |
||||
|
||||
#define CFF_Err_Invalid_Engine FT_Err_Invalid_Driver_Handle |
||||
|
||||
/* Internal errors. */ |
||||
|
||||
#define CFF_Err_Out_Of_Memory FT_Err_Out_Of_Memory |
||||
#define CFF_Err_Unlisted_Object FT_Err_Unlisted_Object |
||||
|
||||
/* General glyph outline errors. */ |
||||
|
||||
#define CFF_Err_Invalid_Composite FT_Err_Invalid_Composite |
||||
|
||||
/* CFF parser errors. */ |
||||
|
||||
#define CFF_Err_Stack_Underflow FT_Err_Invalid_Argument |
||||
#define CFF_Err_Syntax_Error FT_Err_Invalid_Argument |
||||
|
||||
/* Bytecode interpreter error codes. */ |
||||
|
||||
/* These error codes are produced by the TrueType */ |
||||
/* bytecode interpreter. They usually indicate a */ |
||||
/* broken font file, a broken glyph within a font */ |
||||
/* file, or a bug in the interpreter! */ |
||||
|
||||
#define CFF_Err_Invalid_Opcode 0x500 |
||||
#define CFF_Err_Too_Few_Arguments 0x501 |
||||
#define CFF_Err_Stack_Overflow 0x502 |
||||
#define CFF_Err_Code_Overflow 0x503 |
||||
#define CFF_Err_Bad_Argument 0x504 |
||||
#define CFF_Err_Divide_By_Zero 0x505 |
||||
#define CFF_Err_Storage_Overflow 0x506 |
||||
#define CFF_Err_Cvt_Overflow 0x507 |
||||
#define CFF_Err_Invalid_Reference 0x508 |
||||
#define CFF_Err_Invalid_Distance 0x509 |
||||
#define CFF_Err_Interpolate_Twilight 0x50A |
||||
#define CFF_Err_Debug_OpCode 0x50B |
||||
#define CFF_Err_ENDF_In_Exec_Stream 0x50C |
||||
#define CFF_Err_Out_Of_CodeRanges 0x50D |
||||
#define CFF_Err_Nested_DEFS 0x50E |
||||
#define CFF_Err_Invalid_CodeRange 0x50F |
||||
#define CFF_Err_Invalid_Displacement 0x510 |
||||
#define CFF_Err_Execution_Too_Long 0x511 |
||||
|
||||
#define CFF_Err_Too_Many_Instruction_Defs 0x512 |
||||
#define CFF_Err_Too_Many_Function_Defs 0x513 |
||||
|
||||
/* Other TrueType specific error codes. */ |
||||
|
||||
#define CFF_Err_Table_Missing 0x520 |
||||
#define CFF_Err_Too_Many_Extensions 0x521 |
||||
#define CFF_Err_Extensions_Unsupported 0x522 |
||||
#define CFF_Err_Invalid_Extension_Id 0x523 |
||||
|
||||
#define CFF_Err_No_Vertical_Data 0x524 |
||||
|
||||
#define CFF_Err_Max_Profile_Missing 0x530 |
||||
#define CFF_Err_Header_Table_Missing 0x531 |
||||
#define CFF_Err_Horiz_Header_Missing 0x532 |
||||
#define CFF_Err_Locations_Missing 0x533 |
||||
#define CFF_Err_Name_Table_Missing 0x534 |
||||
#define CFF_Err_CMap_Table_Missing 0x535 |
||||
#define CFF_Err_Hmtx_Table_Missing 0x536 |
||||
#define CFF_Err_OS2_Table_Missing 0x537 |
||||
#define CFF_Err_Post_Table_Missing 0x538 |
||||
|
||||
#define CFF_Err_Invalid_Horiz_Metrics 0x540 |
||||
#define CFF_Err_Invalid_CharMap_Format 0x541 |
||||
#define CFF_Err_Invalid_PPem 0x542 |
||||
#define CFF_Err_Invalid_Vert_Metrics 0x543 |
||||
|
||||
#define CFF_Err_Could_Not_Find_Context 0x550 |
||||
|
||||
|
||||
FT_END_HEADER |
||||
|
||||
|
||||
#endif /* __CFFERRORS_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -1,76 +0,0 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* t1errors.h */ |
||||
/* */ |
||||
/* Type 1 error ID definitions (specification only). */ |
||||
/* */ |
||||
/* Copyright 1996-2000 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
#ifndef __T1ERRORS_H__ |
||||
#define __T1ERRORS_H__ |
||||
|
||||
|
||||
#include <ft2build.h> |
||||
|
||||
|
||||
FT_BEGIN_HEADER |
||||
|
||||
|
||||
/************************ error codes declaration **************/ |
||||
|
||||
/* The error codes are grouped into `classes' used to indicate the */ |
||||
/* `level' at which the error happened. */ |
||||
/* */ |
||||
/* The class is given by an error code's high byte. */ |
||||
|
||||
|
||||
/* ------------- Success is always 0 -------- */ |
||||
|
||||
#define T1_Err_Ok FT_Err_Ok |
||||
|
||||
/* ----------- high level API errors -------- */ |
||||
|
||||
#define T1_Err_Unknown_File_Format FT_Err_Unknown_File_Format |
||||
#define T1_Err_Invalid_File_Format FT_Err_Invalid_File_Format |
||||
#define T1_Err_Invalid_Argument FT_Err_Invalid_Argument |
||||
#define T1_Err_Invalid_Driver_Handle FT_Err_Invalid_Driver_Handle |
||||
#define T1_Err_Invalid_Face_Handle FT_Err_Invalid_Face_Handle |
||||
#define T1_Err_Invalid_Size_Handle FT_Err_Invalid_Size_Handle |
||||
#define T1_Err_Invalid_Glyph_Handle FT_Err_Invalid_Slot_Handle |
||||
#define T1_Err_Invalid_CharMap_Handle FT_Err_Invalid_CharMap_Handle |
||||
#define T1_Err_Invalid_Glyph_Index FT_Err_Invalid_Glyph_Index |
||||
|
||||
#define T1_Err_Unimplemented_Feature FT_Err_Unimplemented_Feature |
||||
|
||||
#define T1_Err_Invalid_Engine FT_Err_Invalid_Driver_Handle |
||||
|
||||
/* ------------- internal errors ------------ */ |
||||
|
||||
#define T1_Err_Out_Of_Memory FT_Err_Out_Of_Memory |
||||
#define T1_Err_Unlisted_Object FT_Err_Unlisted_Object |
||||
|
||||
/* ------------ general glyph outline errors ------ */ |
||||
|
||||
#define T1_Err_Invalid_Composite FT_Err_Invalid_Composite |
||||
|
||||
#define T1_Err_Syntax_Error FT_Err_Invalid_File_Format |
||||
#define T1_Err_Stack_Underflow FT_Err_Invalid_File_Format |
||||
#define T1_Err_Stack_Overflow FT_Err_Invalid_File_Format |
||||
|
||||
|
||||
FT_END_HEADER |
||||
|
||||
#endif /* __T1ERRORS_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -1,131 +0,0 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* tterrors.h */ |
||||
/* */ |
||||
/* TrueType error ID definitions (specification only). */ |
||||
/* */ |
||||
/* Copyright 1996-2000 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
#ifndef __TTERRORS_H__ |
||||
#define __TTERRORS_H__ |
||||
|
||||
|
||||
#include <ft2build.h> |
||||
|
||||
|
||||
FT_BEGIN_HEADER |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* Error codes declaration */ |
||||
/* */ |
||||
/* The error codes are grouped in `classes' used to indicate the `level' */ |
||||
/* at which the error happened. The class is given by an error code's */ |
||||
/* high byte. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
|
||||
/* Success is always 0. */ |
||||
|
||||
#define TT_Err_Ok FT_Err_Ok |
||||
|
||||
/* High level API errors. */ |
||||
|
||||
#define TT_Err_Unknown_File_Format FT_Err_Unknown_File_Format |
||||
#define TT_Err_Invalid_File_Format FT_Err_Invalid_File_Format |
||||
#define TT_Err_Invalid_Argument FT_Err_Invalid_Argument |
||||
#define TT_Err_Invalid_Driver_Handle FT_Err_Invalid_Driver_Handle |
||||
#define TT_Err_Invalid_Face_Handle FT_Err_Invalid_Face_Handle |
||||
#define TT_Err_Invalid_Instance_Handle FT_Err_Invalid_Size_Handle |
||||
#define TT_Err_Invalid_Glyph_Handle FT_Err_Invalid_Slot_Handle |
||||
#define TT_Err_Invalid_CharMap_Handle FT_Err_Invalid_CharMap_Handle |
||||
#define TT_Err_Invalid_Glyph_Index FT_Err_Invalid_Glyph_Index |
||||
|
||||
#define TT_Err_Unimplemented_Feature FT_Err_Unimplemented_Feature |
||||
|
||||
#define TT_Err_Invalid_Engine FT_Err_Invalid_Driver_Handle |
||||
|
||||
/* Internal errors. */ |
||||
|
||||
#define TT_Err_Out_Of_Memory FT_Err_Out_Of_Memory |
||||
#define TT_Err_Unlisted_Object FT_Err_Unlisted_Object |
||||
|
||||
/* General glyph outline errors. */ |
||||
|
||||
#define TT_Err_Too_Many_Ins FT_Err_Too_Many_Hints |
||||
#define TT_Err_Invalid_Composite FT_Err_Invalid_Composite |
||||
|
||||
/* Bytecode interpreter error codes. */ |
||||
|
||||
/* These error codes are produced by the TrueType */ |
||||
/* bytecode interpreter. They usually indicate a */ |
||||
/* broken font file, a broken glyph within a font */ |
||||
/* file, or a bug in the interpreter! */ |
||||
|
||||
#define TT_Err_Invalid_Opcode 0x400 |
||||
#define TT_Err_Too_Few_Arguments 0x401 |
||||
#define TT_Err_Stack_Overflow 0x402 |
||||
#define TT_Err_Code_Overflow 0x403 |
||||
#define TT_Err_Bad_Argument 0x404 |
||||
#define TT_Err_Divide_By_Zero 0x405 |
||||
#define TT_Err_Storage_Overflow 0x406 |
||||
#define TT_Err_Cvt_Overflow 0x407 |
||||
#define TT_Err_Invalid_Reference 0x408 |
||||
#define TT_Err_Invalid_Distance 0x409 |
||||
#define TT_Err_Interpolate_Twilight 0x40A |
||||
#define TT_Err_Debug_OpCode 0x40B |
||||
#define TT_Err_ENDF_In_Exec_Stream 0x40C |
||||
#define TT_Err_Out_Of_CodeRanges 0x40D |
||||
#define TT_Err_Nested_DEFS 0x40E |
||||
#define TT_Err_Invalid_CodeRange 0x40F |
||||
#define TT_Err_Invalid_Displacement 0x410 |
||||
#define TT_Err_Execution_Too_Long 0x411 |
||||
#define TT_Err_Too_Many_Function_Defs 0x412 |
||||
#define TT_Err_Too_Many_Instruction_Defs 0x413 |
||||
|
||||
/* Other TrueType specific error codes. */ |
||||
|
||||
#define TT_Err_Table_Missing 0x420 |
||||
#define TT_Err_Too_Many_Extensions 0x421 |
||||
#define TT_Err_Extensions_Unsupported 0x422 |
||||
#define TT_Err_Invalid_Extension_Id 0x423 |
||||
|
||||
#define TT_Err_No_Vertical_Data 0x424 |
||||
|
||||
#define TT_Err_Max_Profile_Missing 0x430 |
||||
#define TT_Err_Header_Table_Missing 0x431 |
||||
#define TT_Err_Horiz_Header_Missing 0x432 |
||||
#define TT_Err_Locations_Missing 0x433 |
||||
#define TT_Err_Name_Table_Missing 0x434 |
||||
#define TT_Err_CMap_Table_Missing 0x435 |
||||
#define TT_Err_Hmtx_Table_Missing 0x436 |
||||
#define TT_Err_OS2_Table_Missing 0x437 |
||||
#define TT_Err_Post_Table_Missing 0x438 |
||||
|
||||
#define TT_Err_Invalid_Horiz_Metrics 0x440 |
||||
#define TT_Err_Invalid_CharMap_Format 0x441 |
||||
#define TT_Err_Invalid_PPem 0x442 |
||||
#define TT_Err_Invalid_Vert_Metrics 0x443 |
||||
|
||||
#define TT_Err_Could_Not_Find_Context 0x450 |
||||
|
||||
|
||||
FT_END_HEADER |
||||
|
||||
|
||||
#endif /* __TTERRORS_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -0,0 +1,43 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* aherrors.h */ |
||||
/* */ |
||||
/* Autohinter error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the Autohinter error enumeration */ |
||||
/* constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __AHERRORS_H__ |
||||
#define __AHERRORS_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) AH_Err_ ## e = v + FT_Mod_Err_Autohint, |
||||
#define FT_NOERRORDEF( e, v, s ) AH_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST AH_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __AHERRORS_H__ */ |
||||
|
||||
/* END */ |
@ -0,0 +1,43 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* ftcerror.h */ |
||||
/* */ |
||||
/* Caching sub-system error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the caching sub-system error enumeration */ |
||||
/* constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __FTCERROR_H__ |
||||
#define __FTCERROR_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) FTC_Err_ ## e = v + FT_Mod_Err_Cache, |
||||
#define FT_NOERRORDEF( e, v, s ) FTC_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST FTC_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __FTCERROR_H__ */ |
||||
|
||||
/* END */ |
@ -0,0 +1,43 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* cfferrs.h */ |
||||
/* */ |
||||
/* CFF error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the CFF error enumeration constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __CFFERRS_H__ |
||||
#define __CFFERRS_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) CFF_Err_ ## e = v + FT_Mod_Err_CFF, |
||||
#define FT_NOERRORDEF( e, v, s ) CFF_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST CFF_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __CFFERRS_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -0,0 +1,43 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* ciderrs.h */ |
||||
/* */ |
||||
/* CID error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the CID error enumeration constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __CIDERRS_H__ |
||||
#define __CIDERRS_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) CID_Err_ ## e = v + FT_Mod_Err_CID, |
||||
#define FT_NOERRORDEF( e, v, s ) CID_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST CID_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __CIDERRS_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -1,6 +1,6 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* cidtokens.h */ |
||||
/* cidtoken.h */ |
||||
/* */ |
||||
/* CID token definitions (specification only). */ |
||||
/* */ |
@ -0,0 +1,43 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* pcferror.h */ |
||||
/* */ |
||||
/* PCF error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the PCF error enumeration constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __PCFERROR_H__ |
||||
#define __PCFERROR_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) PCF_Err_ ## e = v + FT_Mod_Err_PCF, |
||||
#define FT_NOERRORDEF( e, v, s ) PCF_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST PCF_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __PCFERROR_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -0,0 +1,44 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* psauxerr.h */ |
||||
/* */ |
||||
/* PS auxiliary module error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the PS auxiliary module error enumeration */ |
||||
/* constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __PSAUXERR_H__ |
||||
#define __PSAUXERR_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) PSaux_Err_ ## e = v + FT_Mod_Err_PSaux, |
||||
#define FT_NOERRORDEF( e, v, s ) PSaux_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST PSaux_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __PSAUXERR_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -0,0 +1,44 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* psnamerr.h */ |
||||
/* */ |
||||
/* PS names module error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the PS names module error enumeration */ |
||||
/* constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __PSNAMERR_H__ |
||||
#define __PSNAMERR_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) PSnames_Err_ ## e = v + FT_Mod_Err_PSnames, |
||||
#define FT_NOERRORDEF( e, v, s ) PSnames_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST PSnames_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __PSNAMERR_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -0,0 +1,44 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* rasterrs.h */ |
||||
/* */ |
||||
/* monochrome renderer error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the monochrome renderer error enumeration */ |
||||
/* constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __RASTERRS_H__ |
||||
#define __RASTERRS_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) Raster_Err_ ## e = v + FT_Mod_Err_Raster, |
||||
#define FT_NOERRORDEF( e, v, s ) Raster_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST Raster_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __RASTERRS_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -0,0 +1,42 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* sferrors.h */ |
||||
/* */ |
||||
/* SFNT error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the SFNT error enumeration constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __SFERRORS_H__ |
||||
#define __SFERRORS_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) SFNT_Err_ ## e = v + FT_Mod_Err_SFNT, |
||||
#define FT_NOERRORDEF( e, v, s ) SFNT_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST SFNT_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __SFERRORS_H__ */ |
||||
|
||||
/* END */ |
@ -0,0 +1,44 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* ftsmerrs.h */ |
||||
/* */ |
||||
/* smooth renderer error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the smooth renderer error enumeration */ |
||||
/* constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __FTSMERRS_H__ |
||||
#define __FTSMERRS_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) Smooth_Err_ ## e = v + FT_Mod_Err_Smooth, |
||||
#define FT_NOERRORDEF( e, v, s ) Smooth_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST Smooth_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __FTSMERRS_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -0,0 +1,43 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* tterrors.h */ |
||||
/* */ |
||||
/* TrueType error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the TrueType error enumeration */ |
||||
/* constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __TTERRORS_H__ |
||||
#define __TTERRORS_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) TT_Err_ ## e = v + FT_Mod_Err_TrueType, |
||||
#define FT_NOERRORDEF( e, v, s ) TT_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST TT_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __TTERRORS_H__ */ |
||||
|
||||
/* END */ |
@ -0,0 +1,43 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* t1errors.h */ |
||||
/* */ |
||||
/* Type 1 error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the Type 1 error enumeration constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __T1ERRORS_H__ |
||||
#define __T1ERRORS_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) T1_Err_ ## e = v + FT_Mod_Err_Type1, |
||||
#define FT_NOERRORDEF( e, v, s ) T1_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST T1_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __T1ERRORS_H__ */ |
||||
|
||||
|
||||
/* END */ |
@ -0,0 +1,44 @@ |
||||
/***************************************************************************/ |
||||
/* */ |
||||
/* fnterrs.h */ |
||||
/* */ |
||||
/* Win FNT/FON error codes (specification only). */ |
||||
/* */ |
||||
/* Copyright 2001 by */ |
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
||||
/* */ |
||||
/* This file is part of the FreeType project, and may only be used, */ |
||||
/* modified, and distributed under the terms of the FreeType project */ |
||||
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
||||
/* this file you indicate that you have read the license and */ |
||||
/* understand and accept it fully. */ |
||||
/* */ |
||||
/***************************************************************************/ |
||||
|
||||
|
||||
/*************************************************************************/ |
||||
/* */ |
||||
/* This file is used to define the Windows FNT/FON error enumeration */ |
||||
/* constants. */ |
||||
/* */ |
||||
/*************************************************************************/ |
||||
|
||||
#ifndef __FNTERRS_H__ |
||||
#define __FNTERRS_H__ |
||||
|
||||
#include FT_MODULE_ERRORS_H |
||||
|
||||
#undef __FTERRORS_H__ |
||||
|
||||
#define FT_ERRORDEF( e, v, s ) FNT_Err_ ## e = v + FT_Mod_Err_Winfonts, |
||||
#define FT_NOERRORDEF( e, v, s ) FNT_Err_ ## e = v, |
||||
|
||||
#define FT_ERROR_START_LIST enum { |
||||
#define FT_ERROR_END_LIST FNT_Err_Max }; |
||||
|
||||
#include FT_ERRORS_H |
||||
|
||||
#endif /* __FNTERRS_H__ */ |
||||
|
||||
|
||||
/* END */ |
Loading…
Reference in new issue