Debian Codegraph @

texk/xdvipsk/otflib/cs_type2.h

raw
1 /* This is xdvipsk, an eXtended version of dvips(k) by Tomas Rokicki.
2
3 Copyright (C) 2016 by VTeX Ltd (www.vtex.lt),
4 the xdvipsk project team - Sigitas Tolusis and Arunas Povilaitis.
5
6 Program original code copyright (C) 2007-2014 by Jin-Hwan Cho and
7 Shunsaku Hirata, the dvipdfmx project team.
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
22 */
23
24 #ifndef _CS_TYPE2_H_
25 #define _CS_TYPE2_H_
26
27 #include "cff_types.h"
28 #include "utarray.h"
29
30
31 typedef struct {
32 double x;
33 double y;
34 } cs_point;
35
36 typedef struct {
37 long size;
38 card8 *data;
39 } cs_type1subr;
40
41 extern void cs_start_conversion(int precision, boolean makeSubrs,
42 UT_array *t1_glyphs, UT_array *t1_subrs);
43
44 extern long cs_convert_charstring (card8 *src, long srclen,
45 cff_index *gsubr, cff_index *subr,
46 double default_width, double nominal_width);
47
48 extern void cs_end_conversion();
49
50 #endif /* _CS_TYPE2_H_ */