3 This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
5 Copyright (C) 2002-2012 by Jin-Hwan Cho and Shunsaku Hirata,
6 the dvipdfmx project team.
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.
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.
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.
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))))
31 typedef struct Type0Font Type0Font;
33 extern void Type0Font_set_verbose (void);
35 extern int Type0Font_get_wmode (Type0Font *font);
37 extern char *Type0Font_get_encoding (Type0Font *font);
39 extern char *Type0Font_get_usedchars (Type0Font *font);
41 extern pdf_obj *Type0Font_get_resource (Type0Font *font);
43 extern void Type0Font_set_ToUnicode (Type0Font *font, pdf_obj *cmap_ref);
46 extern int pdf_font_findfont0 (const char *font_name,
47 int cmap_id, fontmap_opt *fmap_opt);
49 /******************************** CACHE ********************************/
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);
56 #endif /* _TYPE0_H_ */