Back to index

tetex-bin  3.0
tfm.h
Go to the documentation of this file.
00001 /*  $Header$
00002 
00003     This is dvipdfm, a DVI to PDF translator.
00004     Copyright (C) 1998, 1999 by Mark A. Wicks
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019     
00020     The author may be contacted via the e-mail address
00021 
00022        mwicks@kettering.edu
00023 */
00024 
00025        
00026 #ifndef TFM_H
00027 
00028 #define TFM_H
00029 
00030 #include "numbers.h"
00031 
00032 extern void tfm_set_verbose(void);
00033 extern void tfm_set_debug(void);
00034 
00035 extern int tfm_open(const char * tex_font_name);
00036 extern void tfm_close_all (void);
00037 
00038 extern double tfm_get_width (int font_id, UNSIGNED_QUAD ch);
00039 extern double tfm_get_height (int font_id, UNSIGNED_QUAD ch);
00040 extern double tfm_get_depth (int font_id, UNSIGNED_QUAD ch);
00041 extern fixword tfm_get_fw_width (int font_id, UNSIGNED_QUAD ch);
00042 extern fixword tfm_get_fw_height (int font_id, UNSIGNED_QUAD ch);
00043 extern fixword tfm_get_fw_depth (int font_id, UNSIGNED_QUAD ch);
00044 extern fixword tfm_string_width (int font_id, unsigned char *s,
00045                              unsigned len);
00046 extern fixword tfm_string_depth (int font_id, unsigned char *s,
00047                              unsigned len);
00048 extern fixword tfm_string_height (int font_id, unsigned char *s,
00049                               unsigned len);
00050 extern double tfm_get_space (int font_id);
00051 extern double tfm_get_it_slant (int font_id);
00052 extern double tfm_get_x_height (int font_id);
00053 
00054 extern UNSIGNED_PAIR tfm_get_firstchar (int font_id);
00055 extern UNSIGNED_PAIR tfm_get_lastchar (int font_id);
00056 
00057 extern double tfm_get_design_size (int font_id);
00058 extern double tfm_get_max_height (int font_id);
00059 extern double tfm_get_max_width (int font_id);
00060 extern int tfm_is_fixed_width (int font_id);
00061 extern double tfm_get_max_depth (int font_id);
00062 
00063 #endif /* TFM_H */