summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfmx/dvipdfmx-20110311/src/cid.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-05-03 14:58:54 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-05-03 14:58:54 +0000
commite857b8207ecc2ab412cc3e74218c80b508f66561 (patch)
tree3cb8f140142a9d52cc3ccb927024330580039443 /Build/source/texk/dvipdfmx/dvipdfmx-20110311/src/cid.h
parent8d82da46f9f3c1c2e75a18edcb4224af1673b855 (diff)
dvipdfmx 20110311
git-svn-id: svn://tug.org/texlive/trunk@22294 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfmx/dvipdfmx-20110311/src/cid.h')
-rw-r--r--Build/source/texk/dvipdfmx/dvipdfmx-20110311/src/cid.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfmx/dvipdfmx-20110311/src/cid.h b/Build/source/texk/dvipdfmx/dvipdfmx-20110311/src/cid.h
new file mode 100644
index 00000000000..257bbe3dce1
--- /dev/null
+++ b/Build/source/texk/dvipdfmx/dvipdfmx-20110311/src/cid.h
@@ -0,0 +1,87 @@
+/* $Header: /home/cvsroot/dvipdfmx/src/cid.h,v 1.14 2008/11/30 21:12:27 matthias Exp $
+
+ This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
+
+ Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
+ the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+*/
+
+#ifndef _CID_H_
+#define _CID_H_
+
+/* CIDFont types */
+#define CIDFONT_TYPE0 1
+#define CIDFONT_TYPE2 2
+
+typedef struct {
+ char *registry;
+ char *ordering;
+ int supplement;
+} CIDSysInfo;
+
+extern CIDSysInfo CSI_IDENTITY;
+extern CIDSysInfo CSI_UNICODE;
+
+typedef struct CIDFont CIDFont;
+
+extern void CIDFont_set_verbose (void);
+#if 0
+extern int CIDFont_require_version (void);
+#endif
+extern void CIDFont_set_flags (long flags);
+
+#define CIDFONT_FORCE_FIXEDPITCH (1 << 1)
+
+#include "pdfobj.h"
+#include "type0.h"
+
+/* FIXME */
+/* Converted from Type 1 */
+#define CIDFONT_FLAG_TYPE1 (1 << 8)
+#define CIDFONT_FLAG_TYPE1C (1 << 9)
+#define CIDFONT_FLAG_TRUETYPE (1 << 10)
+
+extern CIDFont *CIDFont_new (void);
+extern void CIDFont_release (CIDFont *font);
+extern void CIDFont_flush (CIDFont *font);
+
+extern char *CIDFont_get_fontname (CIDFont *font);
+
+extern char *CIDFont_get_ident (CIDFont *font); /* FIXME */
+extern int CIDFont_get_opt_index (CIDFont *font); /* FIXME */
+
+extern int CIDFont_get_flag (CIDFont *font, int mask);
+
+extern int CIDFont_get_subtype (CIDFont *font);
+extern int CIDFont_get_embedding (CIDFont *font);
+extern pdf_obj *CIDFont_get_resource (CIDFont *font);
+extern CIDSysInfo *CIDFont_get_CIDSysInfo (CIDFont *font);
+
+extern void CIDFont_attach_parent (CIDFont *font, int parent_id, int wmode);
+extern int CIDFont_get_parent_id (CIDFont *font, int wmode);
+
+extern int CIDFont_is_BaseFont (CIDFont *font);
+extern int CIDFont_is_ACCFont (CIDFont *font);
+extern int CIDFont_is_UCSFont (CIDFont *font);
+
+#include "fontmap.h"
+extern void CIDFont_cache_init (void);
+extern int CIDFont_cache_find (const char *map_name, CIDSysInfo *cmap_csi, fontmap_opt *fmap_opt);
+extern CIDFont *CIDFont_cache_get (int fnt_id);
+extern void CIDFont_cache_close (void);
+
+#endif /* _CID_H_ */