handle error case where the descendant font for a type 0 composite font is not a dictionary

This commit is contained in:
Eliot Jones
2017-12-25 22:30:34 +00:00
parent 8d3c65b6cd
commit cab46f1ecf

View File

@@ -41,6 +41,10 @@
{
ParseDescendant(descendantFontDictionary, reader, isLenientParsing);
}
else
{
throw new InvalidFontFormatException("Expected to find a Descendant Font dictionary, instead it was: " + parsed);
}
}
else
{