OSDN Git Service

updated with TeX Live 2014.
[putex/putex.git] / src / dvipdfmx-pu / src / type0.h
1 /*  
2     
3     This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
4
5     Copyright (C) 2002-2012 by Jin-Hwan Cho and Shunsaku Hirata,
6     the dvipdfmx project team.
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 _TYPE0_H_
24 #define _TYPE0_H_
25
26 #include "pdfobj.h"
27
28 #define add_to_used_chars2(b,c) {(b)[(c)/8] |= (1 << (7-((c)%8)));}
29 #define is_used_char2(b,c) (((b)[(c)/8]) & (1 << (7-((c)%8))))
30
31 typedef struct Type0Font Type0Font;
32
33 extern void       Type0Font_set_verbose (void);
34
35 extern int        Type0Font_get_wmode     (Type0Font *font);
36 #if 0
37 extern char      *Type0Font_get_encoding  (Type0Font *font);
38 #endif
39 extern char      *Type0Font_get_usedchars (Type0Font *font);
40
41 extern pdf_obj   *Type0Font_get_resource  (Type0Font *font);
42
43 extern void       Type0Font_set_ToUnicode (Type0Font *font, pdf_obj *cmap_ref);
44
45 #include "fontmap.h"
46 extern int        pdf_font_findfont0      (const char *font_name,
47                                            int cmap_id, fontmap_opt *fmap_opt);
48
49 /******************************** CACHE ********************************/
50
51 extern void       Type0Font_cache_init  (void);
52 extern Type0Font *Type0Font_cache_get   (int id);
53 extern int        Type0Font_cache_find  (const char *map_name, int cmap_id, fontmap_opt *fmap_opt);
54 extern void       Type0Font_cache_close (void);
55
56 #endif /* _TYPE0_H_ */