1 /***************************************************************************/
2 /* */
3 /* cidload.h */
4 /* */
5 /* CID-keyed Type1 font loader (specification). */
6 /* */
7 /* Copyright 1996-2001 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* */
10 /* This file is part of the FreeType project, and may only be used, */
11 /* modified, and distributed under the terms of the FreeType project */
12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13 /* this file you indicate that you have read the license and */
14 /* understand and accept it fully. */
15 /* */
16 /***************************************************************************/
19 #ifndef __CIDLOAD_H__
20 #define __CIDLOAD_H__
23 #include <ft2build.h>
24 #include FT_INTERNAL_STREAM_H
25 #include "cidparse.h"
28 FT_BEGIN_HEADER
31 typedef struct CID_Loader_
32 {
33 CID_Parser parser; /* parser used to read the stream */
34 FT_Int num_chars; /* number of characters in encoding */
36 } CID_Loader;
39 FT_LOCAL FT_Long
40 cid_get_offset( FT_Byte** start,
41 FT_Byte offsize );
43 FT_LOCAL void
44 cid_decrypt( FT_Byte* buffer,
45 FT_Offset length,
46 FT_UShort seed );
48 FT_LOCAL FT_Error
49 CID_Open_Face( CID_Face face );
52 FT_END_HEADER
54 #endif /* __CIDLOAD_H__ */
57 /* END */