2000-06-16 08:49:56 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* cidload.h */
|
|
|
|
/* */
|
|
|
|
/* CID-keyed Type1 font loader (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-12-09 01:45:38 +01:00
|
|
|
#ifndef __CIDLOAD_H__
|
|
|
|
#define __CIDLOAD_H__
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
|
|
|
#include <ft2build.h>
|
|
|
|
#include FT_INTERNAL_STREAM_H
|
* include/freetype/config/ft2build.h (FT2_ROOT, FT2_CONFIG_ROOT):
Removed. ANSI C doesn't (explicitly) allow macro expansion in
arguments using `##'.
(FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE): Use directory
names directly. Make them configurable. Use `##' to strip leading
and trailing spaces from arguments.
* builds/unix/ft2unix.h: Adapted.
* src/base/ftsystem.c (ft_alloc, ft_realloc, ft_free, ft_io_stream,
ft_close_stream): Use FT_CALLBACK_DEF.
* builds/unix/ftsystem.c: Use new header scheme.
(FT_Done_Memory): Use free() from FT_Memory structure.
* src/base/ftinit.c, src/base/ftmac.c: Header scheme fixes.
* include/freetype/config/ft2build.h (FT2_CONFIG_ROOT,
FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE,
FT_SOURCE_FILE): Use `##' operator to be really ANSI C compliant.
2000-12-12 23:28:12 +01:00
|
|
|
#include FT_SOURCE_FILE( cid, cidparse.h )
|
2000-12-08 17:17:16 +01:00
|
|
|
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
FT_BEGIN_HEADER
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
2000-06-16 08:49:56 +02:00
|
|
|
typedef struct CID_Loader_
|
|
|
|
{
|
|
|
|
CID_Parser parser; /* parser used to read the stream */
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_Int num_chars; /* number of characters in encoding */
|
2000-06-01 05:27:48 +02:00
|
|
|
|
|
|
|
} CID_Loader;
|
|
|
|
|
2000-06-16 08:49:56 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_Long cid_get_offset( FT_Byte** start,
|
|
|
|
FT_Byte offsize );
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-06-16 21:34:52 +02:00
|
|
|
void cid_decrypt( FT_Byte* buffer,
|
|
|
|
FT_Int length,
|
|
|
|
FT_UShort seed );
|
2000-06-01 05:27:48 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_LOCAL
|
2000-06-16 21:34:52 +02:00
|
|
|
FT_Error CID_Open_Face( CID_Face face );
|
2000-06-16 08:49:56 +02:00
|
|
|
|
2000-12-08 17:17:16 +01:00
|
|
|
|
2000-12-08 03:42:29 +01:00
|
|
|
FT_END_HEADER
|
2000-06-16 08:49:56 +02:00
|
|
|
|
2000-12-09 01:45:38 +01:00
|
|
|
#endif /* __CIDLOAD_H__ */
|
2000-06-01 05:27:48 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* END */
|