mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
Remove embeddedFontsUsed from API.
This commit is contained in:
parent
cab5d7b96f
commit
ce9e9e6ff7
3 changed files with 2 additions and 19 deletions
|
@ -509,11 +509,6 @@ var PageView = function pageView(container, id, scale,
|
|||
textLayerDiv.dataset._scaleY = outputScale.sy;
|
||||
}
|
||||
|
||||
//#if (FIREFOX || MOZCENTRAL)
|
||||
// // Checking if document fonts are used only once
|
||||
// var checkIfDocumentFontsUsed = !PDFView.pdfDocument.embeddedFontsUsed;
|
||||
//#endif
|
||||
|
||||
// Rendering area
|
||||
|
||||
var self = this;
|
||||
|
@ -542,12 +537,6 @@ var PageView = function pageView(container, id, scale,
|
|||
}
|
||||
|
||||
//#if (FIREFOX || MOZCENTRAL)
|
||||
// if (checkIfDocumentFontsUsed && PDFView.pdfDocument.embeddedFontsUsed &&
|
||||
// PDFJS.disableFontFace) {
|
||||
// console.error(mozL10n.get('web_fonts_disabled', null,
|
||||
// 'Web fonts are disabled: unable to use embedded PDF fonts.'));
|
||||
// PDFView.fallback();
|
||||
// }
|
||||
// if (self.textLayer && self.textLayer.textDivs &&
|
||||
// self.textLayer.textDivs.length > 0 &&
|
||||
// !PDFView.supportsDocumentColors) {
|
||||
|
|
|
@ -1674,6 +1674,8 @@ function webViewerLoad(evt) {
|
|||
//#if (FIREFOX || MOZCENTRAL)
|
||||
//if (!PDFView.supportsDocumentFonts) {
|
||||
// PDFJS.disableFontFace = true;
|
||||
// console.warn(mozL10n.get('web_fonts_disabled', null,
|
||||
// 'Web fonts are disabled: unable to use embedded PDF fonts.'));
|
||||
//}
|
||||
//#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue