summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/dvi/mdvi-lib/fontmap.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/backend/dvi/mdvi-lib/fontmap.c b/backend/dvi/mdvi-lib/fontmap.c
index c3c3a8d3..4d7cb576 100644
--- a/backend/dvi/mdvi-lib/fontmap.c
+++ b/backend/dvi/mdvi-lib/fontmap.c
@@ -737,7 +737,7 @@ static int mdvi_init_fontmaps(void)
return -1;
dstring_init(&input);
while((line = dgets(&input, in)) != NULL) {
- char *arg;
+ char *arg, *map_file;
SKIPSP(line);
if(*line < ' ' || *line == '#' || *line == '%')
@@ -748,6 +748,11 @@ static int mdvi_init_fontmaps(void)
arg = getstring(line + 7, " \t", &line); *line = 0;
DEBUG((DBG_FMAP, "%s: loading fontmap\n", arg));
ent = mdvi_load_fontmap(arg);
+ if(ent == NULL) {
+ map_file = kpse_find_file(arg, kpse_fontmap_format, 0);
+ if (map_file)
+ ent = mdvi_load_fontmap(map_file);
+ }
if(ent == NULL)
mdvi_warning(_("%s: could not load fontmap\n"), arg);
else {