mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-19 02:37:56 +08:00
refacto : pr comments
This commit is contained in:
@@ -58,14 +58,9 @@
|
|||||||
|
|
||||||
private NameToken GetFontName(DictionaryToken dictionary)
|
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;
|
return fontName;
|
||||||
}
|
|
||||||
|
|
||||||
if (fontName is NameToken nameToken)
|
|
||||||
{
|
|
||||||
return nameToken;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NameToken.Type3;
|
return NameToken.Type3;
|
||||||
|
Reference in New Issue
Block a user