diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:32:41 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2009-11-10 10:32:41 +0000 |
commit | 558303c70cdfd3bc2465cb99c2f8d81a64efcf31 (patch) | |
tree | b308833d445fde6a5ad48558fe4eff1b86ab7ff7 /Build/source/texk/dviljk/tfm.h | |
parent | 81f0eba86eca049a6da0619b12d767e51aea3efb (diff) |
towards TL2010: texk/ misc
git-svn-id: svn://tug.org/texlive/trunk@15976 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dviljk/tfm.h')
-rw-r--r-- | Build/source/texk/dviljk/tfm.h | 47 |
1 files changed, 46 insertions, 1 deletions
diff --git a/Build/source/texk/dviljk/tfm.h b/Build/source/texk/dviljk/tfm.h index fbae3589125..25884040e93 100644 --- a/Build/source/texk/dviljk/tfm.h +++ b/Build/source/texk/dviljk/tfm.h @@ -1,6 +1,51 @@ #ifndef _TFM_H #define _TFM_H -bool tfm_read_info(char *, tfm_info_type *); +/* ******** Declarations used in dvi2xx.[ch] and tfm.c ******** */ + +/* ******** Types ******** */ + +/* ******** Information returned by tfm_read_info ******** */ +typedef struct { + /* These string lengths are imposed by the TFM format. Either of these + values may be the empty string. */ + unsigned char coding_scheme[40]; + unsigned char family[20]; + + /* The second fontdimen. */ + unsigned interword; + + /* These values are what will work to select the font in PCL. If this + TFM file doesn't have the `KN' extensions (distinguishable by the + family == "HPAUTOTFM"). */ +#define SPACING_FIXED 0 +#define SPACING_PROPORTIONAL 1 + unsigned spacing; + int weight; + unsigned style; + unsigned typeface_id; + + /* TFM files can always have 256 characters, even if we're using the + old pixel format that only supports 128. The values are fix-words + scaled by the design size; i.e., straight from the TFM file. */ + long4 widths[256]; +} tfm_info_type; + +/* ******** Defined in dvi2xx.h ******** */ + +#ifndef KPATHSEA +extern char* TFMpath; +#endif +extern bool G_quiet; + +/* ******** Defined in dvi2xx.c ******** */ + +extern void Fatal(const char *, ...); +extern long4 NoSignExtend(FILEPTR, int); +extern void Warning(const char *, ...); + +/* ******** Defined in tfm.c ******** */ + +extern bool tfm_read_info(char *, tfm_info_type *); #endif /* _TFM_H */ |