4 * descriptions for mapping dvi names to
5 * font indexes and back. Dvi fonts are all
6 * 256 elements (actually only 256-32 are usable).
8 * The encoding names are taken from X -
9 * case insensitive, a dash separating the
10 * CharSetRegistry from the CharSetEncoding
13 # define DVI_MAX_SYNONYMS 10
14 # define DVI_MAP_SIZE 256
15 # define DVI_HASH_SIZE 256
17 typedef struct _dviCharNameHash
{
18 struct _dviCharNameHash
*next
;
23 typedef struct _dviCharNameMap
{
26 char *dvi_names
[DVI_MAP_SIZE
][DVI_MAX_SYNONYMS
];
27 DviCharNameHash
*buckets
[DVI_HASH_SIZE
];
30 extern DviCharNameMap
*DviFindMap ( /* char *encoding */ );
31 extern void DviRegisterMap ( /* DviCharNameMap *map */ );
33 extern char *DviCharName ( /* DviCharNameMap *map, int index, int synonym */ );
35 #define DviCharName(map,index,synonym) ((map)->dvi_names[index][synonym])
37 extern int DviCharIndex ( /* DviCharNameMap *map, char *name */ );