Merge pull request #16381 from Snuffleupagus/rm-isStandardFont-prop
Remove the unused `isStandardFont` font-property (PR 15880 follow-up)
This commit is contained in:
commit
001acfb5ac
@ -4192,7 +4192,6 @@ class PartialEvaluator {
|
|||||||
const standardFontName = getStandardFontName(baseFontName);
|
const standardFontName = getStandardFontName(baseFontName);
|
||||||
let file = null;
|
let file = null;
|
||||||
if (standardFontName) {
|
if (standardFontName) {
|
||||||
properties.isStandardFont = true;
|
|
||||||
file = await this.fetchStandardFontData(standardFontName);
|
file = await this.fetchStandardFontData(standardFontName);
|
||||||
properties.isInternalFont = !!file;
|
properties.isInternalFont = !!file;
|
||||||
}
|
}
|
||||||
@ -4264,7 +4263,6 @@ class PartialEvaluator {
|
|||||||
warn(`translateFont - fetching "${fontName.name}" font file: "${ex}".`);
|
warn(`translateFont - fetching "${fontName.name}" font file: "${ex}".`);
|
||||||
fontFile = new NullStream();
|
fontFile = new NullStream();
|
||||||
}
|
}
|
||||||
let isStandardFont = false;
|
|
||||||
let isInternalFont = false;
|
let isInternalFont = false;
|
||||||
let glyphScaleFactors = null;
|
let glyphScaleFactors = null;
|
||||||
if (fontFile) {
|
if (fontFile) {
|
||||||
@ -4297,7 +4295,6 @@ class PartialEvaluator {
|
|||||||
} else if (!isType3Font) {
|
} else if (!isType3Font) {
|
||||||
const standardFontName = getStandardFontName(fontName.name);
|
const standardFontName = getStandardFontName(fontName.name);
|
||||||
if (standardFontName) {
|
if (standardFontName) {
|
||||||
isStandardFont = true;
|
|
||||||
fontFile = await this.fetchStandardFontData(standardFontName);
|
fontFile = await this.fetchStandardFontData(standardFontName);
|
||||||
isInternalFont = !!fontFile;
|
isInternalFont = !!fontFile;
|
||||||
}
|
}
|
||||||
@ -4311,7 +4308,6 @@ class PartialEvaluator {
|
|||||||
length1,
|
length1,
|
||||||
length2,
|
length2,
|
||||||
length3,
|
length3,
|
||||||
isStandardFont,
|
|
||||||
isInternalFont,
|
isInternalFont,
|
||||||
loadedName: baseDict.loadedName,
|
loadedName: baseDict.loadedName,
|
||||||
composite,
|
composite,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user