1 /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. 2 3 Copyright (C) 2002-2014 by Jin-Hwan Cho and Shunsaku Hirata, 4 the dvipdfmx project team. 5 6 Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu> 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 extern void tfm_set_verbose (void); 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, int32_t ch); 34 #if 0 35 extern double tfm_get_height (int font_id, int32_t ch); 36 extern double tfm_get_depth (int font_id, int32_t ch); 37 #endif 38 39 extern fixword tfm_get_fw_width (int font_id, int32_t ch); 40 extern fixword tfm_get_fw_height (int font_id, int32_t ch); 41 extern fixword tfm_get_fw_depth (int font_id, int32_t ch); 42 43 extern fixword tfm_string_width (int font_id, const unsigned char *s, unsigned len); 44 extern fixword tfm_string_depth (int font_id, const unsigned char *s, unsigned len); 45 extern fixword tfm_string_height (int font_id, const unsigned char *s, unsigned len); 46 47 extern double tfm_get_space (int font_id); 48 49 /* From TFM header */ 50 extern double tfm_get_design_size (int font_id); 51 #if 0 52 extern char *tfm_get_codingscheme (int font_id); 53 extern int tfm_is_vert (int font_id); 54 #endif 55 56 extern int tfm_exists (const char *tfm_name); 57 58 #endif /* _TFM_H_ */ 59