Back to index

texmacs  1.0.7.15
cid_p.h
Go to the documentation of this file.
00001 /*  $Header: /home/cvsroot/dvipdfmx/src/cid_p.h,v 1.9 2008/05/17 04:18:47 chofchof 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     Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu>
00009 
00010     This program is free software; you can redistribute it and/or modify
00011     it under the terms of the GNU General Public License as published by
00012     the Free Software Foundation; either version 2 of the License, or
00013     (at your option) any later version.
00014 
00015     This program is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018     GNU General Public License for more details.
00019 
00020     You should have received a copy of the GNU General Public License
00021     along with this program; if not, write to the Free Software
00022     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00023 */
00024 
00025 #ifndef _CID_P_H_
00026 #define _CID_P_H_
00027 
00028 #define FONT_FLAG_NONE        0
00029 #define FONT_FLAG_BASEFONT    (1 << 0)
00030 #define FONT_FLAG_ACCFONT     (1 << 1)
00031 #define FONT_FLAG_UCSFONT     (1 << 2)
00032 
00033 #include "fontmap.h"
00034 #define FONT_STYLE_NONE       FONTMAP_STYLE_NONE
00035 #define FONT_STYLE_BOLD       FONTMAP_STYLE_BOLD
00036 #define FONT_STYLE_ITALIC     FONTMAP_STYLE_ITALIC
00037 #define FONT_STYLE_BOLDITALIC FONTMAP_STYLE_BOLDITALIC
00038 
00039 typedef struct
00040 {
00041   char       *name;  /* Unused */
00042   CIDSysInfo *csi;
00043   int         index;
00044   int         style;
00045   int         embed;
00046   int         stemv;
00047 } cid_opt;
00048 
00049 struct CIDFont
00050 {
00051   char       *ident;      /* Map record entry */
00052   char       *name;       /* Fontname or filename */
00053   char       *fontname;   /* PostScript font name */
00054   /*
00055    * CIDFont Specific
00056    */
00057   int         subtype;    /* CIDFONT_TYPE0 or CIDFONT_TYPE2 */
00058   int         flags;      /* BASEFONT */
00059   int         parent[2];  /* Parent type0 font of this CID-keyed font: H, V */
00060   CIDSysInfo *csi;        /* Character collection */
00061   cid_opt    *options;    /* Options from map record */
00062   /*
00063    * PDF Font Resource
00064    */
00065   pdf_obj *indirect;   /* Indirect reference to CIDFont dictionary */
00066   pdf_obj *fontdict;   /* CIDFont dictionary */
00067   pdf_obj *descriptor; /* FontDescriptor */
00068 };
00069 
00070 #endif /* _CID_P_H_ */