summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/cid_p.h
blob: e509c5b4f32c76934d8c8db481c4acd2b9b20470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.

    Copyright (C) 2002-2016 by Jin-Hwan Cho and Shunsaku Hirata,
    the dvipdfmx project team.

    Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu>

    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_P_H_
#define _CID_P_H_

#define FONT_FLAG_NONE        0
#define FONT_FLAG_BASEFONT    (1 << 0)
#define FONT_FLAG_ACCFONT     (1 << 1)
#define FONT_FLAG_UCSFONT     (1 << 2)

#include "fontmap.h"
#define FONT_STYLE_NONE       FONTMAP_STYLE_NONE
#define FONT_STYLE_BOLD       FONTMAP_STYLE_BOLD
#define FONT_STYLE_ITALIC     FONTMAP_STYLE_ITALIC
#define FONT_STYLE_BOLDITALIC FONTMAP_STYLE_BOLDITALIC

typedef struct
{
  char       *name;  /* Unused */
  CIDSysInfo *csi;
  int         index;
  int         style;
  int         embed;
  int         stemv;
  void       *cff_charsets;
} cid_opt;

struct CIDFont
{
  char       *ident;      /* Map record entry */
  char       *name;       /* Fontname or filename */
  char       *fontname;   /* PostScript font name */
  /*
   * CIDFont Specific
   */
  int         subtype;    /* CIDFONT_TYPE0 or CIDFONT_TYPE2 */
  int         flags;      /* BASEFONT */
  int         parent[2];  /* Parent type0 font of this CID-keyed font: H, V */
  CIDSysInfo *csi;        /* Character collection */
  cid_opt    *options;    /* Options from map record */
  /*
   * PDF Font Resource
   */
  pdf_obj *indirect;   /* Indirect reference to CIDFont dictionary */
  pdf_obj *fontdict;   /* CIDFont dictionary */
  pdf_obj *descriptor; /* FontDescriptor */
};

#endif /* _CID_P_H_ */