2018-06-03 09:01:17 +02:00
|
|
|
/****************************************************************************
|
|
|
|
*
|
|
|
|
* t42parse.h
|
|
|
|
*
|
|
|
|
* Type 42 font parser (specification).
|
|
|
|
*
|
2022-01-11 10:54:10 +01:00
|
|
|
* Copyright (C) 2002-2022 by
|
2018-06-03 09:01:17 +02:00
|
|
|
* Roberto Alameda.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
2002-06-08 08:47:18 +02:00
|
|
|
|
|
|
|
|
2016-01-12 21:37:13 +01:00
|
|
|
#ifndef T42PARSE_H_
|
|
|
|
#define T42PARSE_H_
|
2002-06-08 08:47:18 +02:00
|
|
|
|
2002-06-07 09:23:06 +02:00
|
|
|
|
|
|
|
#include "t42objs.h"
|
2020-06-08 13:31:55 +02:00
|
|
|
#include <freetype/internal/psaux.h>
|
2002-06-07 09:23:06 +02:00
|
|
|
|
2002-06-08 08:47:18 +02:00
|
|
|
|
2002-06-07 09:23:06 +02:00
|
|
|
FT_BEGIN_HEADER
|
|
|
|
|
|
|
|
typedef struct T42_ParserRec_
|
|
|
|
{
|
|
|
|
PS_ParserRec root;
|
|
|
|
FT_Stream stream;
|
|
|
|
|
|
|
|
FT_Byte* base_dict;
|
* include/freetype/internal/ftdriver.h,
include/freetype/internal/ftobjs.h,
include/freetype/internal/psaux.h, src/cid/cidgload.c,
src/psaux/psobjs.c, src/psaux/t1decode.c, src/psaux/psobjs.h,
src/pshinter/pshrec.c, src/pshinter/pshalgo.c,
src/psnames/psmodule.c, src/raster/ftraster.c, src/sfnt/sfobjs.c,
src/smooth/ftgrays.c, src/smooth/ftsmooth.c, src/truetype/ttobjs.c,
src/truetype/ttdriver.c, src/truetype/ttgload.c, src/type1/t1afm.c,
src/type1/t1gload.c, src/type1/t1gload.h, src/type1/t1load.c,
src/type1/t1objs.c, src/type42/t42parse.c, src/type42/t42parse.h:
Many casts and slight argument type changes to make it work with
a 16bit compiler.
2003-06-05 06:31:05 +02:00
|
|
|
FT_Long base_len;
|
2002-06-07 09:23:06 +02:00
|
|
|
|
2003-10-16 17:48:39 +02:00
|
|
|
FT_Bool in_memory;
|
2002-06-07 09:23:06 +02:00
|
|
|
|
|
|
|
} T42_ParserRec, *T42_Parser;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct T42_Loader_
|
|
|
|
{
|
|
|
|
T42_ParserRec parser; /* parser used to read the stream */
|
|
|
|
|
2015-02-21 10:39:34 +01:00
|
|
|
FT_Int num_chars; /* number of characters in encoding */
|
2002-06-07 09:23:06 +02:00
|
|
|
PS_TableRec encoding_table; /* PS_Table used to store the */
|
|
|
|
/* encoding character names */
|
|
|
|
|
2015-02-21 10:39:34 +01:00
|
|
|
FT_Int num_glyphs;
|
2002-06-07 09:23:06 +02:00
|
|
|
PS_TableRec glyph_names;
|
|
|
|
PS_TableRec charstrings;
|
2003-10-16 17:48:39 +02:00
|
|
|
PS_TableRec swap_table; /* For moving .notdef glyph to index 0. */
|
2002-06-07 09:23:06 +02:00
|
|
|
|
|
|
|
} T42_LoaderRec, *T42_Loader;
|
|
|
|
|
|
|
|
|
|
|
|
FT_LOCAL( FT_Error )
|
|
|
|
t42_parser_init( T42_Parser parser,
|
|
|
|
FT_Stream stream,
|
|
|
|
FT_Memory memory,
|
|
|
|
PSAux_Service psaux );
|
|
|
|
|
|
|
|
FT_LOCAL( void )
|
|
|
|
t42_parser_done( T42_Parser parser );
|
|
|
|
|
|
|
|
|
|
|
|
FT_LOCAL( FT_Error )
|
|
|
|
t42_parse_dict( T42_Face face,
|
|
|
|
T42_Loader loader,
|
|
|
|
FT_Byte* base,
|
|
|
|
FT_Long size );
|
|
|
|
|
|
|
|
|
|
|
|
FT_LOCAL( void )
|
|
|
|
t42_loader_init( T42_Loader loader,
|
|
|
|
T42_Face face );
|
|
|
|
|
|
|
|
FT_LOCAL( void )
|
|
|
|
t42_loader_done( T42_Loader loader );
|
|
|
|
|
|
|
|
|
|
|
|
/* */
|
|
|
|
|
|
|
|
FT_END_HEADER
|
|
|
|
|
2002-06-08 08:47:18 +02:00
|
|
|
|
2016-01-12 21:37:13 +01:00
|
|
|
#endif /* T42PARSE_H_ */
|
2002-06-08 08:47:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|