mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-18 09:57:56 +08:00
refacto : pr comments
This commit is contained in:
@@ -58,14 +58,9 @@
|
||||
|
||||
private NameToken GetFontName(DictionaryToken dictionary)
|
||||
{
|
||||
if (!dictionary.TryGet(NameToken.Name, out var fontName))
|
||||
if (dictionary.TryGet(NameToken.Name, scanner, out NameToken fontName))
|
||||
{
|
||||
return NameToken.Type3;
|
||||
}
|
||||
|
||||
if (fontName is NameToken nameToken)
|
||||
{
|
||||
return nameToken;
|
||||
return fontName;
|
||||
}
|
||||
|
||||
return NameToken.Type3;
|
||||
|
Reference in New Issue
Block a user