/TeXmacs-1.0.7.11-src/src/Plugins/Pdf/dvipdfmx/tt_post.h
C++ Header | 53 lines | 23 code | 9 blank | 21 comment | 0 complexity | afbb19e10f94d3c6cfa37e45a914e160 MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, MPL-2.0-no-copyleft-exception
1/* $Header: /home/cvsroot/dvipdfmx/src/tt_post.h,v 1.1 2004/09/11 14:50:29 hirata Exp $
2
3 This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
4
5 Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
6 the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
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_POST_H_
24#define _TT_POST_H_
25
26#include "sfnt.h"
27
28struct tt_post_table
29{
30 Fixed Version;
31 Fixed italicAngle;
32 FWord underlinePosition;
33 FWord underlineThickness;
34 ULONG isFixedPitch;
35 ULONG minMemType42;
36 ULONG maxMemType42;
37 ULONG minMemType1;
38 ULONG maxMemType1;
39
40 USHORT numberOfGlyphs;
41
42 char **glyphNamePtr; /* Glyph names (pointer to C string) */
43 char **names; /* Non-standard glyph names */
44
45 USHORT count; /* Number of glyph names in names[] */
46};
47
48extern struct tt_post_table *tt_read_post_table (sfnt *sfont);
49extern void tt_release_post_table (struct tt_post_table *post);
50
51extern USHORT tt_lookup_post_table (struct tt_post_table *post, const char *glyphname);
52
53#endif /* _TT_POST_H_ */