Debian Codegraph @

texk/dvipos/tfm.h

raw
1 /* dvipos-20070107
2
3 Copyright (C) 2003 by Jin-Hwan Cho <[email protected]>
4
5 Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
6 the dvipdfmx project team <[email protected]>
7
8 Copyright (C) 1998, 1999 by Mark A. Wicks <[email protected]>
9
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
23 */
24
25 #ifndef _TFM_H_
26 #define _TFM_H_
27
28 #include "dvicore.h"
29
30 extern int tfm_open (const char * tex_name, int must_exist);
31 extern void tfm_close_all (void);
32
33 extern double tfm_get_width (int font_id, UNSIGNED_QUAD ch);
34 extern double tfm_get_height (int font_id, UNSIGNED_QUAD ch);
35 extern double tfm_get_depth (int font_id, UNSIGNED_QUAD ch);
36 extern long tfm_get_fw_width (int font_id, UNSIGNED_QUAD ch);
37 extern long tfm_get_fw_height (int font_id, UNSIGNED_QUAD ch);
38 extern long tfm_get_fw_depth (int font_id, UNSIGNED_QUAD ch);
39 extern long tfm_string_width (int font_id, unsigned char *s,
40 unsigned len);
41 extern long tfm_string_depth (int font_id, unsigned char *s,
42 unsigned len);
43 extern long tfm_string_height (int font_id, unsigned char *s,
44 unsigned len);
45 extern double tfm_get_space (int font_id);
46 extern double tfm_get_it_slant (int font_id);
47 extern double tfm_get_x_height (int font_id);
48
49 extern UNSIGNED_PAIR tfm_get_firstchar (int font_id);
50 extern UNSIGNED_PAIR tfm_get_lastchar (int font_id);
51
52 extern double tfm_get_design_size (int font_id);
53 extern double tfm_get_max_height (int font_id);
54 extern double tfm_get_max_width (int font_id);
55 extern int tfm_is_fixed_width (int font_id);
56 extern double tfm_get_max_depth (int font_id);
57 extern char is_jfm (int font_id);
58 extern char is_vertical (int font_id);
59
60 #endif /* _TFM_H_ */