OSDN Git Service

updated with TeX Live 2014.
[putex/putex.git] / src / dvipdfmx-pu / src / tt_gsub.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 _TT_GSUB_H_
24 #define _TT_GSUB_H_
25
26 #include "sfnt.h"
27 #include "otl_opt.h"
28
29 extern void otl_gsub_set_verbose (void);
30
31 typedef struct otl_gsub otl_gsub;
32
33 /* LookupType for GSUB */
34 #define OTL_GSUB_TYPE_SINGLE    1
35 #define OTL_GSUB_TYPE_MULTIPLE  2
36 #define OTL_GSUB_TYPE_ALTERNATE 3
37 #define OTL_GSUB_TYPE_LIGATURE  4
38 #define OTL_GSUB_TYPE_CONTEXT   5
39 #define OTL_GSUB_TYPE_CCONTEXT  6
40 #define OTL_GSUB_TYPE_ESUBST    7
41
42 extern otl_gsub *otl_gsub_new     (void);
43 extern void      otl_gsub_release (otl_gsub *gsub_list);
44
45 extern int  otl_gsub_select    (otl_gsub *gsub_list,
46                                 const char *script,
47                                 const char *language,
48                                 const char *feature);
49 extern int  otl_gsub_add_feat  (otl_gsub *gsub_list,
50                                 const char *script,
51                                 const char *language,
52                                 const char *feature,
53                                 sfnt *sfont);
54 extern int  otl_gsub_apply     (otl_gsub *gsub_list, USHORT *gid);
55 extern int  otl_gsub_apply_alt (otl_gsub *gsub_list, USHORT alt_idx, USHORT *gid);
56 extern int  otl_gsub_apply_lig (otl_gsub *gsub_list,
57                                 USHORT *gid_in, USHORT num_gids,
58                                 USHORT *gid_out);
59
60 #if  0  
61 extern int  otl_gsub_dump      (otl_gsub *gsub_list,
62                                 const char *script,
63                                 const char *language,
64                                 const char *feature);
65 #endif
66
67 #endif /* _TT_GSUB_H_ */