Remove the unused isStandardFont font-property (PR 15880 follow-up)

This property was added in PR 12726 specifically for use in the `getFontType` function, indirectly used by the `PDFDocumentProxy.stats` getter in the API.
In PR 15880 that functionality was removed, but I forgot to remove this now unused font-property.
This commit is contained in:
Jonas Jenwald 2023-05-03 11:49:37 +02:00
parent 797f8d3dca
commit 24a75bda5d

View File

@ -4199,7 +4199,6 @@ class PartialEvaluator {
const standardFontName = getStandardFontName(baseFontName);
let file = null;
if (standardFontName) {
properties.isStandardFont = true;
file = await this.fetchStandardFontData(standardFontName);
properties.isInternalFont = !!file;
}
@ -4271,7 +4270,6 @@ class PartialEvaluator {
warn(`translateFont - fetching "${fontName.name}" font file: "${ex}".`);
fontFile = new NullStream();
}
let isStandardFont = false;
let isInternalFont = false;
let glyphScaleFactors = null;
if (fontFile) {
@ -4304,7 +4302,6 @@ class PartialEvaluator {
} else if (!isType3Font) {
const standardFontName = getStandardFontName(fontName.name);
if (standardFontName) {
isStandardFont = true;
fontFile = await this.fetchStandardFontData(standardFontName);
isInternalFont = !!fontFile;
}
@ -4318,7 +4315,6 @@ class PartialEvaluator {
length1,
length2,
length3,
isStandardFont,
isInternalFont,
loadedName: baseDict.loadedName,
composite,