handle invalid charstring sequences

it is possible for a file with an adobe type 1 font to contain an invalid charstring sequence, if this happens we handle it and return false from trygenerate.
This commit is contained in:
Eliot Jones
2020-03-08 14:32:58 +00:00
parent 8df2f9cf6b
commit aa9df30722

View File

@@ -39,9 +39,16 @@
return false;
}
path = Run(sequence);
try
{
path = Run(sequence);
glyphs[name] = path;
glyphs[name] = path;
}
catch
{
return false;
}
}
return true;