Back to index

texmacs  1.0.7.15
agl.h
Go to the documentation of this file.
00001 /*  $Header: /home/cvsroot/dvipdfmx/src/agl.h,v 1.18 2007/11/14 02:07:14 chofchof Exp $
00002 
00003     This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
00004 
00005     Copyright (C) 2007 by Jin-Hwan Cho and Shunsaku Hirata,
00006     the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
00007 
00008     Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu>
00009 
00010     This program is free software; you can redistribute it and/or modify
00011     it under the terms of the GNU General Public License as published by
00012     the Free Software Foundation; either version 2 of the License, or
00013     (at your option) any later version.
00014 
00015     This program is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018     GNU General Public License for more details.
00019 
00020     You should have received a copy of the GNU General Public License
00021     along with this program; if not, write to the Free Software
00022     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00023 */
00024 
00025 #ifndef _AGL_H_
00026 #define _AGL_H_
00027 
00028 #define AGL_DEFAULT_LISTFILE "glyphlist.txt"
00029 #define AGL_PREDEF_LISTFILE "pdfglyphlist.txt"
00030 #define AGL_EXTRA_LISTFILE "texglyphlist.txt"
00031 
00032 #define AGL_MAX_UNICODES 16
00033 struct agl_name {
00034   char *name;
00035   char *suffix;
00036   int   n_components;
00037   long  unicodes[AGL_MAX_UNICODES];
00038   struct agl_name *alternate;
00039   int   is_predef;
00040 };
00041 typedef struct agl_name agl_name;
00042 
00043 extern char *agl_chop_suffix  (const char *glyphname, char **suffix);
00044 
00045 extern long  agl_sput_UTF16BE (const char *name,
00046                             unsigned char **dstpp,
00047                             unsigned char *limptr, int *num_fails);
00048 
00049 extern int   agl_get_unicodes (const char *glyphstr,
00050                             long *unicodes, int max_uncodes);
00051 
00052 extern int   agl_name_is_unicode      (const char *glyphname);
00053 extern long  agl_name_convert_unicode (const char *glyphname);
00054 
00055 extern const char *agl_suffix_to_otltag (const char *suffix);
00056 
00057 extern agl_name   *agl_lookup_list     (const char *glyphname);
00058 extern int         agl_load_listfile   (const char *filename, int format);
00059 
00060 #if 0
00061 extern int         agl_select_listfile (const char *mapfile);
00062 #endif
00063 
00064 extern void  agl_set_verbose (void);
00065 extern void  agl_init_map    (void);
00066 extern void  agl_close_map   (void);
00067 
00068 #endif /* _AGL_H_ */