1 /* Copyright (C) 2000 artofcode LLC.  All rights reserved.
2 
3   This program is free software; you can redistribute it and/or modify it
4   under the terms of the GNU General Public License as published by the
5   Free Software Foundation; either version 2 of the License, or (at your
6   option) any later version.
7 
8   This program is distributed in the hope that it will be useful, but
9   WITHOUT ANY WARRANTY; without even the implied warranty of
10   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11   General Public License for more details.
12 
13   You should have received a copy of the GNU General Public License along
14   with this program; if not, write to the Free Software Foundation, Inc.,
15   59 Temple Place, Suite 330, Boston, MA, 02111-1307.
16 
17 */
18 
19 /*$Id: gxcid.h,v 1.3.6.1.2.1 2003/01/17 00:49:03 giles Exp $ */
20 /* Common data definitions for CMaps and CID-keyed fonts */
21 
22 #ifndef gxcid_INCLUDED
23 #  define gxcid_INCLUDED
24 
25 #include "gsstype.h"
26 
27 /* Define the structure for CIDSystemInfo. */
28 typedef struct gs_cid_system_info_s {
29     gs_const_string Registry;
30     gs_const_string Ordering;
31     int Supplement;
32 } gs_cid_system_info_t;
33 extern_st(st_cid_system_info);
34 extern_st(st_cid_system_info_element);
35 #define public_st_cid_system_info() /* in gsfcid.c */\
36   gs_public_st_const_strings2(st_cid_system_info, gs_cid_system_info_t,\
37     "gs_cid_system_info_t", cid_si_enum_ptrs, cid_si_reloc_ptrs,\
38     Registry, Ordering)
39 #define st_cid_system_info_num_ptrs 2
40 #define public_st_cid_system_info_element() /* in gsfcid.c */\
41   gs_public_st_element(st_cid_system_info_element, gs_cid_system_info_t,\
42     "gs_cid_system_info_t[]", cid_si_elt_enum_ptrs, cid_si_elt_reloc_ptrs,\
43     st_cid_system_info)
44 
45 /*
46  * The CIDSystemInfo of a CMap may be null.  We represent this by setting
47  * Registry and Ordering to empty strings, and Supplement to 0.
48  */
49 void cid_system_info_set_null(P1(gs_cid_system_info_t *));
50 bool cid_system_info_is_null(P1(const gs_cid_system_info_t *));
51 
52 #endif /* gxcid_INCLUDED */
53