| 1 |
#ifndef _TFM_H |
| 2 |
#define _TFM_H |
| 3 |
|
| 4 |
/* ******** Declarations used in dvi2xx.[ch] and tfm.c ******** */ |
| 5 |
|
| 6 |
/* ******** Types ******** */ |
| 7 |
|
| 8 |
/* ******** Information returned by tfm_read_info ******** */ |
| 9 |
typedef struct { |
| 10 |
/* These string lengths are imposed by the TFM format. Either of these |
| 11 |
values may be the empty string. */ |
| 12 |
unsigned char coding_scheme[40]; |
| 13 |
unsigned char family[20]; |
| 14 |
|
| 15 |
/* The second fontdimen. */ |
| 16 |
unsigned interword; |
| 17 |
|
| 18 |
/* These values are what will work to select the font in PCL. If this |
| 19 |
TFM file doesn't have the `KN' extensions (distinguishable by the |
| 20 |
family == "HPAUTOTFM"). */ |
| 21 |
#define SPACING_FIXED 0 |
| 22 |
#define SPACING_PROPORTIONAL 1 |
| 23 |
unsigned spacing; |
| 24 |
int weight; |
| 25 |
unsigned style; |
| 26 |
unsigned typeface_id; |
| 27 |
|
| 28 |
/* TFM files can always have 256 characters, even if we're using the |
| 29 |
old pixel format that only supports 128. The values are fix-words |
| 30 |
scaled by the design size; i.e., straight from the TFM file. */ |
| 31 |
long4 widths[256]; |
| 32 |
} tfm_info_type; |
| 33 |
|
| 34 |
/* ******** Defined in dvi2xx.h ******** */ |
| 35 |
|
| 36 |
#ifndef KPATHSEA |
| 37 |
extern char* TFMpath; |
| 38 |
#endif |
| 39 |
extern bool G_quiet; |
| 40 |
|
| 41 |
/* ******** Defined in dvi2xx.c ******** */ |
| 42 |
|
| 43 |
extern void Fatal(const char *, ...); |
| 44 |
extern long4 NoSignExtend(FILEPTR, int); |
| 45 |
extern void Warning(const char *, ...); |
| 46 |
|
| 47 |
/* ******** Defined in tfm.c ******** */ |
| 48 |
|
| 49 |
extern bool tfm_read_info(char *, tfm_info_type *); |
| 50 |
|
| 51 |
#endif /* _TFM_H */ |