< prev index next >

src/java.desktop/share/native/libfreetype/src/cff/cffparse.h

Print this page




  43 #define CFF2_DEFAULT_STACK  513
  44 
  45 #define CFF_CODE_TOPDICT    0x1000
  46 #define CFF_CODE_PRIVATE    0x2000
  47 #define CFF2_CODE_TOPDICT   0x3000
  48 #define CFF2_CODE_FONTDICT  0x4000
  49 #define CFF2_CODE_PRIVATE   0x5000
  50 
  51 
  52   typedef struct  CFF_ParserRec_
  53   {
  54     FT_Library  library;
  55     FT_Byte*    start;
  56     FT_Byte*    limit;
  57     FT_Byte*    cursor;
  58 
  59     FT_Byte**   stack;
  60     FT_Byte**   top;
  61     FT_UInt     stackSize;  /* allocated size */
  62 




  63     FT_UInt     object_code;
  64     void*       object;
  65 
  66     FT_UShort   num_designs; /* a copy of `CFF_FontRecDict->num_designs' */
  67     FT_UShort   num_axes;    /* a copy of `CFF_FontRecDict->num_axes'    */
  68 
  69   } CFF_ParserRec, *CFF_Parser;
  70 
  71 
  72   FT_LOCAL( FT_Long )
  73   cff_parse_num( CFF_Parser  parser,
  74                  FT_Byte**   d );
  75 
  76   FT_LOCAL( FT_Error )
  77   cff_parser_init( CFF_Parser  parser,
  78                    FT_UInt     code,
  79                    void*       object,
  80                    FT_Library  library,
  81                    FT_UInt     stackSize,
  82                    FT_UShort   num_designs,


 112 
 113   typedef struct  CFF_Field_Handler_
 114   {
 115     int               kind;
 116     int               code;
 117     FT_UInt           offset;
 118     FT_Byte           size;
 119     CFF_Field_Reader  reader;
 120     FT_UInt           array_max;
 121     FT_UInt           count_offset;
 122 
 123 #ifdef FT_DEBUG_LEVEL_TRACE
 124     const char*       id;
 125 #endif
 126 
 127   } CFF_Field_Handler;
 128 
 129 
 130 FT_END_HEADER
 131 









 132 
 133 #endif /* CFFPARSE_H_ */
 134 
 135 
 136 /* END */


  43 #define CFF2_DEFAULT_STACK  513
  44 
  45 #define CFF_CODE_TOPDICT    0x1000
  46 #define CFF_CODE_PRIVATE    0x2000
  47 #define CFF2_CODE_TOPDICT   0x3000
  48 #define CFF2_CODE_FONTDICT  0x4000
  49 #define CFF2_CODE_PRIVATE   0x5000
  50 
  51 
  52   typedef struct  CFF_ParserRec_
  53   {
  54     FT_Library  library;
  55     FT_Byte*    start;
  56     FT_Byte*    limit;
  57     FT_Byte*    cursor;
  58 
  59     FT_Byte**   stack;
  60     FT_Byte**   top;
  61     FT_UInt     stackSize;  /* allocated size */
  62 
  63 #ifdef CFF_CONFIG_OPTION_OLD_ENGINE
  64     FT_ListRec  t2_strings;
  65 #endif /* CFF_CONFIG_OPTION_OLD_ENGINE */
  66 
  67     FT_UInt     object_code;
  68     void*       object;
  69 
  70     FT_UShort   num_designs; /* a copy of `CFF_FontRecDict->num_designs' */
  71     FT_UShort   num_axes;    /* a copy of `CFF_FontRecDict->num_axes'    */
  72 
  73   } CFF_ParserRec, *CFF_Parser;
  74 
  75 
  76   FT_LOCAL( FT_Long )
  77   cff_parse_num( CFF_Parser  parser,
  78                  FT_Byte**   d );
  79 
  80   FT_LOCAL( FT_Error )
  81   cff_parser_init( CFF_Parser  parser,
  82                    FT_UInt     code,
  83                    void*       object,
  84                    FT_Library  library,
  85                    FT_UInt     stackSize,
  86                    FT_UShort   num_designs,


 116 
 117   typedef struct  CFF_Field_Handler_
 118   {
 119     int               kind;
 120     int               code;
 121     FT_UInt           offset;
 122     FT_Byte           size;
 123     CFF_Field_Reader  reader;
 124     FT_UInt           array_max;
 125     FT_UInt           count_offset;
 126 
 127 #ifdef FT_DEBUG_LEVEL_TRACE
 128     const char*       id;
 129 #endif
 130 
 131   } CFF_Field_Handler;
 132 
 133 
 134 FT_END_HEADER
 135 
 136 
 137 #ifdef CFF_CONFIG_OPTION_OLD_ENGINE
 138   typedef struct  CFF_T2_String_
 139   {
 140     FT_Byte*  start;
 141     FT_Byte*  limit;
 142 
 143   } CFF_T2_StringRec, *CFF_T2_String;
 144 #endif /* CFF_CONFIG_OPTION_OLD_ENGINE */
 145 
 146 #endif /* CFFPARSE_H_ */
 147 
 148 
 149 /* END */
< prev index next >