Debian Codegraph @

texk/xdvipsk/otflib/tt_post.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 _TT_POST_H_
25 #define _TT_POST_H_
26
27 #include "sfnt.h"
28
29 struct tt_post_table
30 {
31 Fixed Version;
32 Fixed italicAngle;
33 FWord underlinePosition;
34 FWord underlineThickness;
35 ULONG isFixedPitch;
36 ULONG minMemType42;
37 ULONG maxMemType42;
38 ULONG minMemType1;
39 ULONG maxMemType1;
40
41 USHORT numberOfGlyphs;
42
43 const char **glyphNamePtr; /* Glyph names (pointer to C string) */
44 char **names; /* Non-standard glyph names */
45
46 USHORT count; /* Number of glyph names in names[] */
47 };
48
49 extern struct tt_post_table *tt_read_post_table (sfnt *sfont);
50 extern void tt_release_post_table (struct tt_post_table *post);
51
52 extern USHORT tt_lookup_post_table (struct tt_post_table *post, const char *glyphname);
53 extern char* tt_get_glyphname (struct tt_post_table *post, USHORT gid);
54
55 #endif /* _TT_POST_H_ */