[evince] dvi: Use t1 font mapping files
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] dvi: Use t1 font mapping files
- Date: Sat, 4 Feb 2012 12:09:13 +0000 (UTC)
commit dfbd28dfd9d790b5a3f39890f66a2da9a0d1c759
Author: Marek KaÅÃk <mkasik redhat com>
Date: Sat Feb 4 13:06:54 2012 +0100
dvi: Use t1 font mapping files
Bug #612298.
backend/dvi/mdvi-lib/fontmap.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/backend/dvi/mdvi-lib/fontmap.c b/backend/dvi/mdvi-lib/fontmap.c
index c3c3a8d..4d7cb57 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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]