25 #include FT_INTERNAL_OBJECTS_H 26 #include FT_INTERNAL_TYPE1_TYPES_H 27 #include FT_SERVICE_POSTSCRIPT_CMAPS_H 243 #define T1_FIELD_DICT_FONTDICT ( 1 << 0 ) 244 #define T1_FIELD_DICT_PRIVATE ( 1 << 1 ) 248 #define T1_NEW_SIMPLE_FIELD( _ident, _type, _fname, _dict ) \ 250 _ident, T1CODE, _type, \ 252 FT_FIELD_OFFSET( _fname ), \ 253 FT_FIELD_SIZE( _fname ), \ 258 #define T1_NEW_CALLBACK_FIELD( _ident, _reader, _dict ) \ 260 _ident, T1CODE, T1_FIELD_TYPE_CALLBACK, \ 261 (T1_Field_ParseFunc)_reader, \ 267 #define T1_NEW_TABLE_FIELD( _ident, _type, _fname, _max, _dict ) \ 269 _ident, T1CODE, _type, \ 271 FT_FIELD_OFFSET( _fname ), \ 272 FT_FIELD_SIZE_DELTA( _fname ), \ 274 FT_FIELD_OFFSET( num_ ## _fname ), \ 278 #define T1_NEW_TABLE_FIELD2( _ident, _type, _fname, _max, _dict ) \ 280 _ident, T1CODE, _type, \ 282 FT_FIELD_OFFSET( _fname ), \ 283 FT_FIELD_SIZE_DELTA( _fname ), \ 289 #define T1_FIELD_BOOL( _ident, _fname, _dict ) \ 290 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_BOOL, _fname, _dict ) 292 #define T1_FIELD_NUM( _ident, _fname, _dict ) \ 293 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_INTEGER, _fname, _dict ) 295 #define T1_FIELD_FIXED( _ident, _fname, _dict ) \ 296 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_FIXED, _fname, _dict ) 298 #define T1_FIELD_FIXED_1000( _ident, _fname, _dict ) \ 299 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_FIXED_1000, _fname, \ 302 #define T1_FIELD_STRING( _ident, _fname, _dict ) \ 303 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_STRING, _fname, _dict ) 305 #define T1_FIELD_KEY( _ident, _fname, _dict ) \ 306 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_KEY, _fname, _dict ) 308 #define T1_FIELD_BBOX( _ident, _fname, _dict ) \ 309 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_BBOX, _fname, _dict ) 312 #define T1_FIELD_NUM_TABLE( _ident, _fname, _fmax, _dict ) \ 313 T1_NEW_TABLE_FIELD( _ident, T1_FIELD_TYPE_INTEGER_ARRAY, \ 314 _fname, _fmax, _dict ) 316 #define T1_FIELD_FIXED_TABLE( _ident, _fname, _fmax, _dict ) \ 317 T1_NEW_TABLE_FIELD( _ident, T1_FIELD_TYPE_FIXED_ARRAY, \ 318 _fname, _fmax, _dict ) 320 #define T1_FIELD_NUM_TABLE2( _ident, _fname, _fmax, _dict ) \ 321 T1_NEW_TABLE_FIELD2( _ident, T1_FIELD_TYPE_INTEGER_ARRAY, \ 322 _fname, _fmax, _dict ) 324 #define T1_FIELD_FIXED_TABLE2( _ident, _fname, _fmax, _dict ) \ 325 T1_NEW_TABLE_FIELD2( _ident, T1_FIELD_TYPE_FIXED_ARRAY, \ 326 _fname, _fmax, _dict ) 328 #define T1_FIELD_CALLBACK( _ident, _name, _dict ) \ 329 T1_NEW_CALLBACK_FIELD( _ident, _name, _dict ) 354 (*skip_spaces)( PS_Parser parser );
356 (*skip_PS_token)( PS_Parser parser );
359 (*to_int)( PS_Parser parser );
361 (*to_fixed)( PS_Parser parser,
365 (*to_bytes)( PS_Parser parser,
372 (*to_coord_array)( PS_Parser parser,
376 (*to_fixed_array)( PS_Parser parser,
382 (*to_token)( PS_Parser parser,
385 (*to_token_array)( PS_Parser parser,
391 (*load_field)( PS_Parser parser,
392 const T1_Field field,
398 (*load_field_table)( PS_Parser parser,
399 const T1_Field field,
608 #define T1_MAX_SUBRS_CALLS 8 616 #define T1_MAX_CHARSTRINGS_OPERANDS 32 656 (*parse_charstrings)( T1_Decoder decoder,
726 (*parse)( AFM_Parser parser );
761 (*get_index)(
const char*
name,
830 #define IS_PS_NEWLINE( ch ) \ 834 #define IS_PS_SPACE( ch ) \ 836 IS_PS_NEWLINE( ch ) || \ 841 #define IS_PS_SPECIAL( ch ) \ 843 (ch) == '(' || (ch) == ')' || \ 844 (ch) == '<' || (ch) == '>' || \ 845 (ch) == '[' || (ch) == ']' || \ 846 (ch) == '{' || (ch) == '}' || \ 849 #define IS_PS_DELIM( ch ) \ 850 ( IS_PS_SPACE( ch ) || \ 851 IS_PS_SPECIAL( ch ) ) 853 #define IS_PS_DIGIT( ch ) \ 854 ( (ch) >= '0' && (ch) <= '9' ) 856 #define IS_PS_XDIGIT( ch ) \ 857 ( IS_PS_DIGIT( ch ) || \ 858 ( (ch) >= 'A' && (ch) <= 'F' ) || \ 859 ( (ch) >= 'a' && (ch) <= 'f' ) ) 861 #define IS_PS_BASE85( ch ) \ 862 ( (ch) >= '!' && (ch) <= 'u' ) 864 #define IS_PS_TOKEN( cur, limit, token ) \ 865 ( (char)(cur)[0] == (token)[0] && \ 866 ( (cur) + sizeof ( (token) ) == (limit) || \ 867 ( (cur) + sizeof( (token) ) < (limit) && \ 868 IS_PS_DELIM( (cur)[sizeof ( (token) ) - 1] ) ) ) && \ 869 ft_strncmp( (char*)(cur), (token), sizeof ( (token) ) - 1 ) == 0 )
GLenum GLuint GLenum GLsizei length
T1_CMap_Classes t1_cmap_classes
enum T1_TokenType_ T1_TokenType
T1_Builder_Start_Point_Func start_point
struct T1_Builder_FuncsRec_ T1_Builder_FuncsRec
const AFM_Parser_FuncsRec * afm_parser_funcs
FT_BEGIN_HEADER typedef signed long FT_Pos
struct PS_Parser_FuncsRec_ PS_Parser_FuncsRec
struct AFM_StreamRec_ * AFM_Stream
struct T1_FieldRec_ T1_FieldRec
const T1_Decoder_FuncsRec * t1_decoder_funcs
GLint GLint GLint GLint GLint GLint y
enum T1_FieldType_ T1_FieldType
struct T1_DecoderRec_ * T1_Decoder
struct AFM_ParserRec_ AFM_ParserRec
enum T1_FieldLocation_ T1_FieldLocation
struct T1_Decoder_ZoneRec_ T1_Decoder_ZoneRec
enum FT_Render_Mode_ FT_Render_Mode
const struct T1_Builder_FuncsRec_ * T1_Builder_Funcs
void(* done)(PS_Table table)
FT_Error(* T1_Decoder_Callback)(T1_Decoder decoder, FT_UInt glyph_index)
void(* T1_Builder_Close_Contour_Func)(T1_Builder builder)
T1_Builder_Add_Point1_Func add_point1
PSAux_ServiceRec PSAux_Interface
GLint GLint GLint GLint GLint x
const PS_Table_FuncsRec * ps_table_funcs
struct T1_TokenRec_ T1_TokenRec
T1_Decoder_Callback parse_callback
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
const T1_Builder_FuncsRec * t1_builder_funcs
const PS_Parser_FuncsRec * ps_parser_funcs
T1_Builder_Check_Points_Func check_points
FT_BEGIN_HEADER typedef unsigned char FT_Bool
GLenum GLuint GLint GLenum face
typedefFT_BEGIN_HEADER struct FT_GlyphLoaderRec_ * FT_GlyphLoader
struct PS_ParserRec_ PS_ParserRec
#define T1_MAX_SUBRS_CALLS
FT_Error(* T1_Builder_Start_Point_Func)(T1_Builder builder, FT_Pos x, FT_Pos y)
struct PS_ParserRec_ * PS_Parser
struct AFM_Parser_FuncsRec_ AFM_Parser_FuncsRec
#define T1_MAX_CHARSTRINGS_OPERANDS
T1_Builder_Add_Contour_Func add_contour
const struct PS_Table_FuncsRec_ * PS_Table_Funcs
struct T1_FieldRec_ * T1_Field
enum T1_ParseState_ T1_ParseState
void(* T1_Field_ParseFunc)(FT_Face face, FT_Pointer parser)
FT_Error(* T1_Builder_Add_Point1_Func)(T1_Builder builder, FT_Pos x, FT_Pos y)
T1_ParseState parse_state
struct PS_Table_FuncsRec_ PS_Table_FuncsRec
struct PSAux_ServiceRec_ * PSAux_Service
T1_Builder_Close_Contour_Func close_contour
T1_Builder_FuncsRec funcs
T1_Decoder_FuncsRec funcs
FT_Error(* T1_Builder_Check_Points_Func)(T1_Builder builder, FT_Int count)
const struct T1_CMap_ClassesRec_ * T1_CMap_Classes
FT_Service_PsCMaps psnames
FT_Error(* T1_Builder_Add_Contour_Func)(T1_Builder builder)
struct AFM_ParserRec_ * AFM_Parser
GLboolean GLenum GLenum GLvoid * values
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
T1_Builder_Add_Point_Func add_point
struct T1_TokenRec_ * T1_Token
t1_decrypt(FT_Byte *buffer, FT_Offset length, FT_UShort seed)
GLuint const GLchar * name
void(* T1_Builder_Add_Point_Func)(T1_Builder builder, FT_Pos x, FT_Pos y, FT_Byte flag)
struct T1_BuilderRec_ T1_BuilderRec
typedefFT_BEGIN_HEADER struct PS_TableRec_ * PS_Table
struct T1_BuilderRec_ * T1_Builder
T1_Field_ParseFunc reader
const struct PS_Parser_FuncsRec_ * PS_Parser_Funcs
void(* release)(PS_Table table)
FT_Error(* add)(PS_Table table, FT_Int idx, void *object, FT_PtrDist length)
T1_FieldLocation location
struct T1_CMap_ClassesRec_ T1_CMap_ClassesRec
struct T1_Decoder_FuncsRec_ T1_Decoder_FuncsRec
GLuint GLuint GLsizei count
struct PSAux_ServiceRec_ PSAux_ServiceRec
FT_Error(* init)(PS_Table table, FT_Int count, FT_Memory memory)
png_infop png_uint_32 flag
GLenum GLsizei GLenum GLenum const GLvoid * table
struct T1_Decoder_ZoneRec_ * T1_Decoder_Zone
struct T1_DecoderRec_ T1_DecoderRec
struct PS_TableRec_ PS_TableRec
const struct T1_Decoder_FuncsRec_ * T1_Decoder_Funcs