~ubuntu-branches/ubuntu/utopic/texlive-bin/utopic

« back to all changes in this revision

Viewing changes to texk/dvipdfmx/dvipdfmx-20110311/src/cid.h

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-05-07 10:47:49 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20120507104749-p00ot5sajjbkp1hp
Tags: 2011.20120507-1
* new upstream checkout: uptex 1.10
* drop patches for config file inclusion in (x)dvipdfmx, included upstream
* add man page for etex
* include pmpost patches and build it
* adapt/unfuzzify patches for current sources
* disable mtx building, we have prepmx package in Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  $Header: /home/cvsroot/dvipdfmx/src/cid.h,v 1.14 2008/11/30 21:12:27 matthias Exp $
2
 
    
3
 
    This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
4
 
 
5
 
    Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
6
 
    the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
7
 
    
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.
12
 
    
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.
17
 
    
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.
21
 
*/
22
 
 
23
 
#ifndef _CID_H_
24
 
#define _CID_H_
25
 
 
26
 
/* CIDFont types */
27
 
#define CIDFONT_TYPE0 1
28
 
#define CIDFONT_TYPE2 2
29
 
 
30
 
typedef struct {
31
 
  char *registry;
32
 
  char *ordering;
33
 
  int   supplement;
34
 
} CIDSysInfo;
35
 
 
36
 
extern CIDSysInfo CSI_IDENTITY;
37
 
extern CIDSysInfo CSI_UNICODE;
38
 
 
39
 
typedef struct CIDFont CIDFont;
40
 
 
41
 
extern void CIDFont_set_verbose     (void);
42
 
#if 0
43
 
extern int  CIDFont_require_version (void);
44
 
#endif
45
 
extern void CIDFont_set_flags       (long flags);
46
 
 
47
 
#define CIDFONT_FORCE_FIXEDPITCH (1 << 1)
48
 
 
49
 
#include "pdfobj.h"
50
 
#include "type0.h"
51
 
 
52
 
/* FIXME */
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)
57
 
 
58
 
extern CIDFont *CIDFont_new     (void);
59
 
extern void     CIDFont_release (CIDFont *font);
60
 
extern void     CIDFont_flush   (CIDFont *font);
61
 
 
62
 
extern char       *CIDFont_get_fontname   (CIDFont *font);
63
 
 
64
 
extern char       *CIDFont_get_ident      (CIDFont *font); /* FIXME */
65
 
extern int         CIDFont_get_opt_index  (CIDFont *font); /* FIXME */
66
 
 
67
 
extern int         CIDFont_get_flag       (CIDFont *font, int mask);
68
 
 
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);
73
 
 
74
 
extern void     CIDFont_attach_parent (CIDFont *font, int parent_id, int wmode);
75
 
extern int      CIDFont_get_parent_id (CIDFont *font, int wmode);
76
 
 
77
 
extern int      CIDFont_is_BaseFont (CIDFont *font);
78
 
extern int      CIDFont_is_ACCFont  (CIDFont *font);
79
 
extern int      CIDFont_is_UCSFont  (CIDFont *font);
80
 
 
81
 
#include "fontmap.h"
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);
86
 
 
87
 
#endif /* _CID_H_ */