2000-08-17 09:18:04 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* psobjs.h */
|
|
|
|
/* */
|
|
|
|
/* Auxiliary functions for PostScript fonts (specification). */
|
|
|
|
/* */
|
2001-06-28 19:49:10 +02:00
|
|
|
/* Copyright 1996-2001 by */
|
2000-08-17 09:18:04 +02:00
|
|
|
/* 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-12-09 01:45:38 +01:00
|
|
|
#ifndef __PSOBJS_H__
|
|
|
|
#define __PSOBJS_H__
|
2000-08-17 03:09:06 +02:00
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_INTERNAL_POSTSCRIPT_AUX_H
|
|
|
|
|
2000-08-17 09:18:04 +02:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
FT_BEGIN_HEADER
|
2000-08-17 09:18:04 +02:00
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
2000-08-17 03:09:06 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** T1_TABLE *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
2000-08-29 18:50:01 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_CALLBACK_TABLE
|
2002-02-28 17:10:29 +01:00
|
|
|
const PS_Table_FuncsRec ps_table_funcs;
|
2000-08-17 03:09:06 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_CALLBACK_TABLE
|
2002-02-28 17:10:29 +01:00
|
|
|
const PS_Parser_FuncsRec ps_parser_funcs;
|
2000-08-29 18:50:01 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_CALLBACK_TABLE
|
2002-02-28 17:10:29 +01:00
|
|
|
const T1_Builder_Funcs t1_builder_funcs;
|
2000-08-29 18:50:01 +02:00
|
|
|
|
2000-10-31 21:42:18 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Table_New( PS_Table table,
|
2001-06-27 21:46:12 +02:00
|
|
|
FT_Int count,
|
|
|
|
FT_Memory memory );
|
2000-10-31 21:42:18 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Table_Add( PS_Table table,
|
2001-06-27 21:46:12 +02:00
|
|
|
FT_Int index,
|
|
|
|
void* object,
|
|
|
|
FT_Int length );
|
2000-08-17 03:09:06 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Table_Done( PS_Table table );
|
2000-08-21 06:58:49 +02:00
|
|
|
|
2000-08-17 03:09:06 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Table_Release( PS_Table table );
|
2000-08-17 03:09:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** T1 PARSER *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_SkipSpaces( PS_Parser parser );
|
2000-08-17 03:09:06 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_SkipAlpha( PS_Parser parser );
|
2000-08-17 03:09:06 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_ToToken( PS_Parser parser,
|
2002-03-06 13:36:22 +01:00
|
|
|
T1_Token token );
|
2000-08-17 03:09:06 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_ToTokenArray( PS_Parser parser,
|
2002-03-06 13:36:22 +01:00
|
|
|
T1_Token tokens,
|
|
|
|
FT_UInt max_tokens,
|
|
|
|
FT_Int* pnum_tokens );
|
2000-10-31 21:42:18 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_LoadField( PS_Parser parser,
|
2002-03-06 13:36:22 +01:00
|
|
|
const T1_Field field,
|
|
|
|
void** objects,
|
|
|
|
FT_UInt max_objects,
|
|
|
|
FT_ULong* pflags );
|
2000-10-31 21:42:18 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_LoadFieldTable( PS_Parser parser,
|
2002-03-06 13:36:22 +01:00
|
|
|
const T1_Field field,
|
|
|
|
void** objects,
|
|
|
|
FT_UInt max_objects,
|
|
|
|
FT_ULong* pflags );
|
2000-10-31 21:42:18 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Long )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_ToInt( PS_Parser parser );
|
2000-08-17 03:09:06 +02:00
|
|
|
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Fixed )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_ToFixed( PS_Parser parser,
|
2001-06-27 21:46:12 +02:00
|
|
|
FT_Int power_ten );
|
2000-08-17 03:09:06 +02:00
|
|
|
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Int )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_ToCoordArray( PS_Parser parser,
|
2002-03-06 13:36:22 +01:00
|
|
|
FT_Int max_coords,
|
|
|
|
FT_Short* coords );
|
2000-08-17 03:09:06 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Int )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_ToFixedArray( PS_Parser parser,
|
2002-03-06 13:36:22 +01:00
|
|
|
FT_Int max_values,
|
|
|
|
FT_Fixed* values,
|
|
|
|
FT_Int power_ten );
|
2000-08-17 03:09:06 +02:00
|
|
|
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_Init( PS_Parser parser,
|
2001-06-27 21:46:12 +02:00
|
|
|
FT_Byte* base,
|
|
|
|
FT_Byte* limit,
|
|
|
|
FT_Memory memory );
|
2000-08-21 06:58:49 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2002-02-28 17:10:29 +01:00
|
|
|
PS_Parser_Done( PS_Parser parser );
|
2000-08-21 06:58:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** T1 BUILDER *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-06-27 21:46:12 +02:00
|
|
|
T1_Builder_Init( T1_Builder* builder,
|
|
|
|
FT_Face face,
|
|
|
|
FT_Size size,
|
2001-10-18 13:49:26 +02:00
|
|
|
FT_GlyphSlot glyph,
|
|
|
|
FT_Bool hinting );
|
2000-08-21 06:58:49 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-06-27 21:46:12 +02:00
|
|
|
T1_Builder_Done( T1_Builder* builder );
|
2000-10-31 21:42:18 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-06-27 21:46:12 +02:00
|
|
|
T1_Builder_Check_Points( T1_Builder* builder,
|
|
|
|
FT_Int count );
|
2000-10-31 21:42:18 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-06-27 21:46:12 +02:00
|
|
|
T1_Builder_Add_Point( T1_Builder* builder,
|
|
|
|
FT_Pos x,
|
|
|
|
FT_Pos y,
|
|
|
|
FT_Byte flag );
|
2000-08-21 06:58:49 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-06-27 21:46:12 +02:00
|
|
|
T1_Builder_Add_Point1( T1_Builder* builder,
|
|
|
|
FT_Pos x,
|
|
|
|
FT_Pos y );
|
2000-10-31 21:42:18 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-06-27 21:46:12 +02:00
|
|
|
T1_Builder_Add_Contour( T1_Builder* builder );
|
2000-10-31 21:42:18 +01:00
|
|
|
|
2000-08-21 06:58:49 +02:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( FT_Error )
|
2001-06-27 21:46:12 +02:00
|
|
|
T1_Builder_Start_Point( T1_Builder* builder,
|
|
|
|
FT_Pos x,
|
|
|
|
FT_Pos y );
|
2000-08-21 06:58:49 +02:00
|
|
|
|
2001-12-05 02:22:05 +01:00
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-06-27 21:46:12 +02:00
|
|
|
T1_Builder_Close_Contour( T1_Builder* builder );
|
2000-08-17 03:09:06 +02:00
|
|
|
|
|
|
|
|
2000-08-21 06:58:49 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
/***** *****/
|
|
|
|
/***** OTHER *****/
|
|
|
|
/***** *****/
|
|
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
|
|
|
2002-03-01 03:26:22 +01:00
|
|
|
FT_LOCAL( void )
|
2001-06-27 21:46:12 +02:00
|
|
|
T1_Decrypt( FT_Byte* buffer,
|
|
|
|
FT_Offset length,
|
|
|
|
FT_UShort seed );
|
2000-08-17 03:09:06 +02:00
|
|
|
|
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
FT_END_HEADER
|
2000-08-17 09:18:04 +02:00
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#endif /* __PSOBJS_H__ */
|
2000-08-17 03:09:06 +02:00
|
|
|
|
2000-08-17 09:18:04 +02:00
|
|
|
|
|
|
|
/* END */
|