Back to index

texmacs  1.0.7.15
cid.h
Go to the documentation of this file.
00001 /*  $Header: /home/cvsroot/dvipdfmx/src/cid.h,v 1.14 2008/11/30 21:12:27 matthias Exp $
00002     
00003     This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
00004 
00005     Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
00006     the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
00007     
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012     
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017     
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00021 */
00022 
00023 #ifndef _CID_H_
00024 #define _CID_H_
00025 
00026 /* CIDFont types */
00027 #define CIDFONT_TYPE0 1
00028 #define CIDFONT_TYPE2 2
00029 
00030 typedef struct {
00031   char *registry;
00032   char *ordering;
00033   int   supplement;
00034 } CIDSysInfo;
00035 
00036 extern CIDSysInfo CSI_IDENTITY;
00037 extern CIDSysInfo CSI_UNICODE;
00038 
00039 typedef struct CIDFont CIDFont;
00040 
00041 extern void CIDFont_set_verbose     (void);
00042 #if 0
00043 extern int  CIDFont_require_version (void);
00044 #endif
00045 extern void CIDFont_set_flags       (long flags);
00046 
00047 #define CIDFONT_FORCE_FIXEDPITCH (1 << 1)
00048 
00049 #include "pdfobj.h"
00050 #include "type0.h"
00051 
00052 /* FIXME */
00053 /* Converted from Type 1 */
00054 #define CIDFONT_FLAG_TYPE1      (1 << 8)
00055 #define CIDFONT_FLAG_TYPE1C     (1 << 9)
00056 #define CIDFONT_FLAG_TRUETYPE   (1 << 10)
00057 
00058 extern CIDFont *CIDFont_new     (void);
00059 extern void     CIDFont_release (CIDFont *font);
00060 extern void     CIDFont_flush   (CIDFont *font);
00061 
00062 extern char       *CIDFont_get_fontname   (CIDFont *font);
00063 
00064 extern char       *CIDFont_get_ident      (CIDFont *font); /* FIXME */
00065 extern int         CIDFont_get_opt_index  (CIDFont *font); /* FIXME */
00066 
00067 extern int         CIDFont_get_flag       (CIDFont *font, int mask);
00068 
00069 extern int         CIDFont_get_subtype    (CIDFont *font);
00070 extern int         CIDFont_get_embedding  (CIDFont *font);
00071 extern pdf_obj    *CIDFont_get_resource   (CIDFont *font);
00072 extern CIDSysInfo *CIDFont_get_CIDSysInfo (CIDFont *font);
00073 
00074 extern void     CIDFont_attach_parent (CIDFont *font, int parent_id, int wmode);
00075 extern int      CIDFont_get_parent_id (CIDFont *font, int wmode);
00076 
00077 extern int      CIDFont_is_BaseFont (CIDFont *font);
00078 extern int      CIDFont_is_ACCFont  (CIDFont *font);
00079 extern int      CIDFont_is_UCSFont  (CIDFont *font);
00080 
00081 #include "fontmap.h"
00082 extern void     CIDFont_cache_init  (void);
00083 extern int      CIDFont_cache_find  (const char *map_name, CIDSysInfo *cmap_csi, fontmap_opt *fmap_opt);
00084 extern CIDFont *CIDFont_cache_get   (int fnt_id);
00085 extern void     CIDFont_cache_close (void);
00086 
00087 #endif /* _CID_H_ */