summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-font.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-08-22 14:55:12 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-08-23 14:22:09 +0200
commit1d06fc68e8f3da0b639629b5af67e2fa682fcd30 (patch)
tree40c3772ab8a6b9b844a5816d4480514c1f992e97 /source/pdf/pdf-font.c
parent07851a05c442bbd43ad440539e3c597e804c83af (diff)
downloadmupdf-1d06fc68e8f3da0b639629b5af67e2fa682fcd30.tar.xz
Look up glyphs by the 'uniXXXX' form if the glyph list duplicates all fail.
Diffstat (limited to 'source/pdf/pdf-font.c')
-rw-r--r--source/pdf/pdf-font.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c
index cfd258ec..aee22e51 100644
--- a/source/pdf/pdf-font.c
+++ b/source/pdf/pdf-font.c
@@ -593,6 +593,12 @@ pdf_load_simple_font_by_name(pdf_document *doc, pdf_obj *dict, char *basefont)
break;
dupnames++;
}
+ if (etable[i] == 0)
+ {
+ char buf[10];
+ sprintf(buf, "uni%04X", aglcode);
+ etable[i] = FT_Get_Name_Index(face, buf);
+ }
}
}
}