Debian Codegraph @

texk/dvipdfm-x/tfm.h

raw
1 /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
2
3 Copyright (C) 2002-2020 by Jin-Hwan Cho and Shunsaku Hirata,
4 the dvipdfmx project team.
5
6 Copyright (C) 1998, 1999 by Mark A. Wicks <[email protected]>
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 _TFM_H_
24 #define _TFM_H_
25
26 #include "numbers.h"
27
28 #define UCS_LASTCHAR 0x10FFFFUL
29 #define JFM_LASTCHAR 0xFFFFFFUL
30
31 extern int tfm_open (const char * tex_name, int must_exist);
32 extern void tfm_close_all (void);
33
34 extern double tfm_get_width (int font_id, int32_t ch);
35 #if 0
36 extern double tfm_get_height (int font_id, int32_t ch);
37 extern double tfm_get_depth (int font_id, int32_t ch);
38 #endif
39
40 extern fixword tfm_get_fw_width (int font_id, int32_t ch);
41 extern fixword tfm_get_fw_height (int font_id, int32_t ch);
42 extern fixword tfm_get_fw_depth (int font_id, int32_t ch);
43
44 extern fixword tfm_string_width (int font_id, const unsigned char *s, unsigned len);
45 #if 0
46 extern fixword tfm_string_depth (int font_id, const unsigned char *s, unsigned len);
47 extern fixword tfm_string_height (int font_id, const unsigned char *s, unsigned len);
48 #endif
49
50 /* From TFM header */
51 extern double tfm_get_design_size (int font_id);
52 #if 0
53 extern char *tfm_get_codingscheme (int font_id);
54 extern int tfm_is_vert (int font_id);
55 #endif
56 extern int tfm_is_jfm (int font_id);
57
58 extern int tfm_exists (const char *tfm_name);
59
60 #endif /* _TFM_H_ */