1 /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. 2 3 Copyright (C) 2002-2014 by Jin-Hwan Cho and Shunsaku Hirata, 4 the dvipdfmx project team. 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2 of the License, or 9 (at your option) any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software 18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 19 */ 20 21 #ifndef _TYPE0_H_ 22 #define _TYPE0_H_ 23 24 #include "pdfobj.h" 25 26 #define add_to_used_chars2(b,c) {(b)[(c)/8] |= (1 << (7-((c)%8)));} 27 #define is_used_char2(b,c) (((b)[(c)/8]) & (1 << (7-((c)%8)))) 28 29 typedef struct Type0Font Type0Font; 30 31 extern void Type0Font_set_verbose (void); 32 33 extern int Type0Font_get_wmode (Type0Font *font); 34 #if 0 35 extern char *Type0Font_get_encoding (Type0Font *font); 36 #endif 37 extern char *Type0Font_get_usedchars (Type0Font *font); 38 39 extern pdf_obj *Type0Font_get_resource (Type0Font *font); 40 41 extern void Type0Font_set_ToUnicode (Type0Font *font, pdf_obj *cmap_ref); 42 43 #include "fontmap.h" 44 45 /******************************** CACHE ********************************/ 46 47 extern void Type0Font_cache_init (void); 48 extern Type0Font *Type0Font_cache_get (int id); 49 extern int Type0Font_cache_find (const char *map_name, int cmap_id, fontmap_opt *fmap_opt); 50 extern void Type0Font_cache_close (void); 51 52 #endif /* _TYPE0_H_ */ 53