Back to index

texmacs  1.0.7.15
tfm.h
Go to the documentation of this file.
00001 /*  $Header: /home/cvsroot/dvipdfmx/src/tfm.h,v 1.12 2008/11/30 21:12:27 matthias Exp $
00002     
00003     This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
00004 
00005     Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
00006     the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
00007     
00008     Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu>
00009 
00010     This program is free software; you can redistribute it and/or modify
00011     it under the terms of the GNU General Public License as published by
00012     the Free Software Foundation; either version 2 of the License, or
00013     (at your option) any later version.
00014     
00015     This program is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018     GNU General Public License for more details.
00019     
00020     You should have received a copy of the GNU General Public License
00021     along with this program; if not, write to the Free Software
00022     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00023 */
00024 
00025 #ifndef _TFM_H_
00026 #define _TFM_H_
00027 
00028 #include "numbers.h"
00029 
00030 extern void tfm_set_verbose (void);
00031 
00032 extern int  tfm_open (const char * tex_name, int must_exist);
00033 extern void tfm_close_all (void);
00034 
00035 extern double tfm_get_width  (int font_id, SIGNED_QUAD ch);
00036 #if 0
00037 extern double tfm_get_height (int font_id, SIGNED_QUAD ch);
00038 extern double tfm_get_depth  (int font_id, SIGNED_QUAD ch);
00039 #endif
00040 
00041 extern fixword tfm_get_fw_width  (int font_id, SIGNED_QUAD ch);
00042 extern fixword tfm_get_fw_height (int font_id, SIGNED_QUAD ch);
00043 extern fixword tfm_get_fw_depth  (int font_id, SIGNED_QUAD ch);
00044 
00045 extern fixword tfm_string_width  (int font_id, const unsigned char *s, unsigned len);
00046 extern fixword tfm_string_depth  (int font_id, const unsigned char *s, unsigned len);
00047 extern fixword tfm_string_height (int font_id, const unsigned char *s, unsigned len);
00048 
00049 extern double tfm_get_space (int font_id);
00050 
00051 /* From TFM header */
00052 extern double tfm_get_design_size  (int font_id);
00053 #if 0
00054 extern char  *tfm_get_codingscheme (int font_id);
00055 extern int tfm_is_vert (int font_id);
00056 #endif
00057 
00058 extern int tfm_exists  (const char *tfm_name);
00059 
00060 #endif /* _TFM_H_ */