handle null charstring names

it appears charstring definitions in adobe type 1 fonts can omit the charstring name. in this case we set the name to the string value of the charstring index.
This commit is contained in:
Eliot Jones
2020-01-25 16:35:08 +00:00
parent ba09a13d08
commit 736f83e227

View File

@@ -25,7 +25,7 @@
{
Bytes = bytes ?? throw new ArgumentNullException(nameof(bytes));
Index = index;
Name = name;
Name = name ?? index.ToString();
Source = SourceType.Charstring;
}