mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-18 18:27:55 +08:00
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:
@@ -25,7 +25,7 @@
|
||||
{
|
||||
Bytes = bytes ?? throw new ArgumentNullException(nameof(bytes));
|
||||
Index = index;
|
||||
Name = name;
|
||||
Name = name ?? index.ToString();
|
||||
Source = SourceType.Charstring;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user