Excluding Type3 fonts from the check; removing dead code
This commit is contained in:
parent
5dc87a7fca
commit
3346c284ab
@ -344,12 +344,12 @@ var PDFPageProxy = (function PDFPageProxyClosure() {
|
|||||||
warn('Error during font loading: ' + obj.error);
|
warn('Error during font loading: ' + obj.error);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (!obj.coded) {
|
||||||
|
this.transport.embeddedFontsUsed = true;
|
||||||
|
}
|
||||||
fontObjs.push(obj);
|
fontObjs.push(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.transport.embeddedFontsUsed = this.transport.embeddedFontsUsed ||
|
|
||||||
fontObjs.length > 0;
|
|
||||||
|
|
||||||
// Load all the fonts
|
// Load all the fonts
|
||||||
FontLoader.bind(
|
FontLoader.bind(
|
||||||
fontObjs,
|
fontObjs,
|
||||||
@ -452,7 +452,6 @@ var WorkerTransport = (function WorkerTransportClosure() {
|
|||||||
|
|
||||||
this.pageCache = [];
|
this.pageCache = [];
|
||||||
this.pagePromises = [];
|
this.pagePromises = [];
|
||||||
this.fontsLoading = {};
|
|
||||||
this.embeddedFontsUsed = false;
|
this.embeddedFontsUsed = false;
|
||||||
|
|
||||||
// If worker support isn't disabled explicit and the browser has worker
|
// If worker support isn't disabled explicit and the browser has worker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user