2000-06-14 01:21:00 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* t2parse.h */
|
|
|
|
/* */
|
|
|
|
/* OpenType parser (specification). */
|
|
|
|
/* */
|
|
|
|
/* 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. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
2000-05-29 22:55:13 +02:00
|
|
|
#ifndef T2PARSE_H
|
|
|
|
#define T2PARSE_H
|
|
|
|
|
|
|
|
#include <freetype/internal/t2types.h>
|
|
|
|
#include <freetype/internal/ftobjs.h>
|
|
|
|
|
|
|
|
#define T2_MAX_STACK_DEPTH 96
|
|
|
|
|
2000-06-14 01:21:00 +02:00
|
|
|
#define T2CODE_TOPDICT 0x1000
|
|
|
|
#define T2CODE_PRIVATE 0x2000
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2000-05-30 01:03:15 +02:00
|
|
|
|
2000-06-14 01:21:00 +02:00
|
|
|
|
|
|
|
typedef struct T2_Parser_
|
2000-05-29 22:55:13 +02:00
|
|
|
{
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_Byte* start;
|
|
|
|
FT_Byte* limit;
|
|
|
|
FT_Byte* cursor;
|
2000-06-14 01:21:00 +02:00
|
|
|
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_Byte* stack[T2_MAX_STACK_DEPTH + 1];
|
|
|
|
FT_Byte** top;
|
2000-06-14 01:21:00 +02:00
|
|
|
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_UInt object_code;
|
2000-05-29 22:55:13 +02:00
|
|
|
void* object;
|
2000-06-14 01:21:00 +02:00
|
|
|
|
2000-05-29 22:55:13 +02:00
|
|
|
} T2_Parser;
|
|
|
|
|
|
|
|
|
|
|
|
LOCAL_DEF
|
2000-06-14 01:21:00 +02:00
|
|
|
void T2_Parser_Init( T2_Parser* parser,
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_UInt code,
|
2000-06-14 01:21:00 +02:00
|
|
|
void* object );
|
2000-05-29 22:55:13 +02:00
|
|
|
|
|
|
|
LOCAL_DEF
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_Error T2_Parser_Run( T2_Parser* parser,
|
|
|
|
FT_Byte* start,
|
|
|
|
FT_Byte* limit );
|
2000-06-14 01:21:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2000-05-29 22:55:13 +02:00
|
|
|
|
|
|
|
#endif /* T2PARSE_H */
|
2000-06-14 01:21:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|