mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-18 18:27:55 +08:00
default to .notdef for type 2 charstrings
if the glyph with a specific name isn't found in the set of type 2 charstrings we default to using the .notdef glyph if present.
This commit is contained in:
@@ -45,7 +45,10 @@
|
||||
|
||||
if (!CharStrings.TryGetValue(name, out var sequence))
|
||||
{
|
||||
throw new InvalidOperationException($"No charstring sequence with the name /{name} in this font.");
|
||||
if (!CharStrings.TryGetValue(".notdef", out sequence))
|
||||
{
|
||||
throw new InvalidOperationException($"No charstring sequence with the name /{name} in this font.");
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
|
Reference in New Issue
Block a user