|
|
@ -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
|
|
|
|