Back to index

texmacs  1.0.7.15
type0.h
Go to the documentation of this file.
00001 /*  $Header: /home/cvsroot/dvipdfmx/src/type0.h,v 1.13 2008/11/30 21:12:27 matthias Exp $
00002     
00003     This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
00004 
00005     Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
00006     the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
00007     
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012     
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017     
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00021 */
00022 
00023 #ifndef _TYPE0_H_
00024 #define _TYPE0_H_
00025 
00026 #include "pdfobj.h"
00027 
00028 #define add_to_used_chars2(b,c) {(b)[(c)/8] |= (1 << (7-((c)%8)));}
00029 #define is_used_char2(b,c) (((b)[(c)/8]) & (1 << (7-((c)%8))))
00030 
00031 typedef struct Type0Font Type0Font;
00032 
00033 extern void       Type0Font_set_verbose (void);
00034 
00035 extern int        Type0Font_get_wmode     (Type0Font *font);
00036 #if 0
00037 extern char      *Type0Font_get_encoding  (Type0Font *font);
00038 #endif
00039 extern char      *Type0Font_get_usedchars (Type0Font *font);
00040 
00041 extern pdf_obj   *Type0Font_get_resource  (Type0Font *font);
00042 
00043 extern void       Type0Font_set_ToUnicode (Type0Font *font, pdf_obj *cmap_ref);
00044 
00045 #include "fontmap.h"
00046 extern int        pdf_font_findfont0      (const char *font_name,
00047                                       int cmap_id, fontmap_opt *fmap_opt);
00048 
00049 /******************************** CACHE ********************************/
00050 
00051 extern void       Type0Font_cache_init  (void);
00052 extern Type0Font *Type0Font_cache_get   (int id);
00053 extern int        Type0Font_cache_find  (const char *map_name, int cmap_id, fontmap_opt *fmap_opt);
00054 extern void       Type0Font_cache_close (void);
00055 
00056 #endif /* _TYPE0_H_ */