Commit 78b4afa0 authored by Albert Astals Cid's avatar Albert Astals Cid

Accept Fontname if FontName is not present

Fixes KDE bug 217013
parent fee5cb0e
......@@ -230,6 +230,15 @@ void GfxFont::readFontDescriptor(XRef *xref, Dict *fontDict) {
embFontName = new GooString(obj2.getName());
}
obj2.free();
if (embFontName == NULL) {
// get name with typo
obj1.dictLookup("Fontname", &obj2);
if (obj2.isName()) {
embFontName = new GooString(obj2.getName());
error(-1, "The file uses Fontname instead of FontName please notify the creator that the file is broken");
}
obj2.free();
}
// get family
obj1.dictLookup("FontFamily", &obj2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment