mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-15 19:54:52 +08:00
handle hidden standard14 font with no encoding when document incorrectly indicates font is truetype
This commit is contained in:
@@ -66,6 +66,11 @@
|
|||||||
|
|
||||||
var thisEncoding = encodingReader.Read(dictionary, isLenientParsing);
|
var thisEncoding = encodingReader.Read(dictionary, isLenientParsing);
|
||||||
|
|
||||||
|
if (thisEncoding == null)
|
||||||
|
{
|
||||||
|
thisEncoding = new AdobeFontMetricsEncoding(standard14Font);
|
||||||
|
}
|
||||||
|
|
||||||
return new TrueTypeStandard14FallbackSimpleFont(baseFont, standard14Font, thisEncoding, fileSystemFont);
|
return new TrueTypeStandard14FallbackSimpleFont(baseFont, standard14Font, thisEncoding, fileSystemFont);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user