1
/* $Header: /home/cvsroot/dvipdfmx/src/cid.h,v 1.14 2008/11/30 21:12:27 matthias Exp $
3
This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
5
Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
6
the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
8
This program is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2 of the License, or
11
(at your option) any later version.
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
18
You should have received a copy of the GNU General Public License
19
along with this program; if not, write to the Free Software
20
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
27
#define CIDFONT_TYPE0 1
28
#define CIDFONT_TYPE2 2
36
extern CIDSysInfo CSI_IDENTITY;
37
extern CIDSysInfo CSI_UNICODE;
39
typedef struct CIDFont CIDFont;
41
extern void CIDFont_set_verbose (void);
43
extern int CIDFont_require_version (void);
45
extern void CIDFont_set_flags (long flags);
47
#define CIDFONT_FORCE_FIXEDPITCH (1 << 1)
53
/* Converted from Type 1 */
54
#define CIDFONT_FLAG_TYPE1 (1 << 8)
55
#define CIDFONT_FLAG_TYPE1C (1 << 9)
56
#define CIDFONT_FLAG_TRUETYPE (1 << 10)
58
extern CIDFont *CIDFont_new (void);
59
extern void CIDFont_release (CIDFont *font);
60
extern void CIDFont_flush (CIDFont *font);
62
extern char *CIDFont_get_fontname (CIDFont *font);
64
extern char *CIDFont_get_ident (CIDFont *font); /* FIXME */
65
extern int CIDFont_get_opt_index (CIDFont *font); /* FIXME */
67
extern int CIDFont_get_flag (CIDFont *font, int mask);
69
extern int CIDFont_get_subtype (CIDFont *font);
70
extern int CIDFont_get_embedding (CIDFont *font);
71
extern pdf_obj *CIDFont_get_resource (CIDFont *font);
72
extern CIDSysInfo *CIDFont_get_CIDSysInfo (CIDFont *font);
74
extern void CIDFont_attach_parent (CIDFont *font, int parent_id, int wmode);
75
extern int CIDFont_get_parent_id (CIDFont *font, int wmode);
77
extern int CIDFont_is_BaseFont (CIDFont *font);
78
extern int CIDFont_is_ACCFont (CIDFont *font);
79
extern int CIDFont_is_UCSFont (CIDFont *font);
82
extern void CIDFont_cache_init (void);
83
extern int CIDFont_cache_find (const char *map_name, CIDSysInfo *cmap_csi, fontmap_opt *fmap_opt);
84
extern CIDFont *CIDFont_cache_get (int fnt_id);
85
extern void CIDFont_cache_close (void);