Lines Matching defs:map

39  * ones named in a %%DocumentFonts: comment and listed in a special map table.
44 * The map table consists of fontname-filename pairs, separated by white space.
47 * the active map table that point the program to a readable Unix file. A request
49 * ignored if the map table can't be read. In that case the program simply copies
52 * An example (but not one to follow) of what can be in a map table is,
58 * Bookman-Light KR % Keeping everything (including the map
100 char *mapname = "map"; /* map table - usually in *hostfontdir */
101 char *suffix = ""; /* appended to the map table pathname */
102 Map *map = NULL; /* device font map table */
104 int next = 0; /* next free slot in map[] */
148 readmap(); /* read the font map table */
213 case 'm': /* printer map table name */
270 * Initializes the map table by reading an ASCII mapping file. If mapname begins
271 * with a / it's the map table. Otherwise hostfontdir, mapname, and suffix are
274 * we leave next points to the next free slot in the map[] array. If it's zero
307 map = allocate(map, next+50);
308 map[next].downloaded = FALSE;
309 map[next].font = strtok(ptr, " \t\n");
310 map[next].file = strtok(ptr = NULL, " \t\n");
311 if ( map[next].font == NULL )
313 if ( map[next].file == NULL )
314 error(FATAL, "map table format error - check %s", path);
334 * there's no mapping file. Comments, as in the map file, begin with a % and
352 map[n].downloaded = TRUE;
420 * If next is zero the map table is empty and all we do is copy the input file
473 * Look for each font in the map table and if it's found copy the font file to
486 if ( *map[n].file != '/' ) {
487 if ( (path = malloc(strlen(hostfontdir)+strlen(map[n].file)+2)) == NULL )
489 sprintf(path, "%s/%s", hostfontdir, map[n].file);
492 } else cat(map[n].file);
493 map[n].downloaded = TRUE;
536 * Looks for *font in the map table. Return the map table index if found and
542 if ( strcmp(font, map[i].font) == 0 ) {
543 if ( map[i].downloaded == TRUE )
570 error(FATAL, "no map memory");