From 9bd4d73be2e8bbedec67389d264b15ab772663ce Mon Sep 17 00:00:00 2001 From: Pdf Bot Date: Tue, 22 Nov 2016 16:42:54 +0000 Subject: [PATCH] PDF.js version 1.6.336 - See mozilla/pdf.js@9d8fb025127751449b827515c32b50f95e45f49f --- bower.json | 2 +- build/pdf.combined.js | 12 ++++++++---- build/pdf.js | 6 +++--- build/pdf.worker.js | 10 +++++++--- package.json | 2 +- 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/bower.json b/bower.json index 156efb46d..8a635d201 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.6.334", + "version": "1.6.336", "main": [ "build/pdf.js", "build/pdf.worker.js" diff --git a/build/pdf.combined.js b/build/pdf.combined.js index e9337a5b7..243361c53 100644 --- a/build/pdf.combined.js +++ b/build/pdf.combined.js @@ -23,8 +23,8 @@ } }(this, function (exports) { 'use strict'; - var pdfjsVersion = '1.6.334'; - var pdfjsBuild = '787d887'; + var pdfjsVersion = '1.6.336'; + var pdfjsBuild = '9d8fb02'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; var pdfjsLibs = {}; (function pdfjsWrapper() { @@ -20458,6 +20458,10 @@ t['ArialBlack-Bold'] = 'Helvetica-Bold'; t['ArialBlack-BoldItalic'] = 'Helvetica-BoldOblique'; t['ArialBlack-Italic'] = 'Helvetica-Oblique'; + t['Arial-Black'] = 'Helvetica'; + t['Arial-Black-Bold'] = 'Helvetica-Bold'; + t['Arial-Black-BoldItalic'] = 'Helvetica-BoldOblique'; + t['Arial-Black-Italic'] = 'Helvetica-Oblique'; t['Arial'] = 'Helvetica'; t['Arial-Bold'] = 'Helvetica-Bold'; t['Arial-BoldItalic'] = 'Helvetica-BoldOblique'; @@ -40992,7 +40996,7 @@ for (charCode in GlyphMapForStandardFonts) { map[+charCode] = GlyphMapForStandardFonts[charCode]; } - if (/ArialBlack/i.test(name)) { + if (/Arial-?Black/i.test(name)) { var SupplementalGlyphMapForArialBlack = getSupplementalGlyphMapForArialBlack(); for (charCode in SupplementalGlyphMapForArialBlack) { map[+charCode] = SupplementalGlyphMapForArialBlack[charCode]; @@ -44588,7 +44592,7 @@ return; } var name = fontObj.loadedName || 'sans-serif'; - var bold = fontObj.black ? fontObj.bold ? '900' : 'bold' : fontObj.bold ? 'bold' : 'normal'; + var bold = fontObj.black ? '900' : fontObj.bold ? 'bold' : 'normal'; var italic = fontObj.italic ? 'italic' : 'normal'; var typeface = '"' + name + '", ' + fontObj.fallbackName; var browserFontSize = size < MIN_FONT_SIZE ? MIN_FONT_SIZE : size > MAX_FONT_SIZE ? MAX_FONT_SIZE : size; diff --git a/build/pdf.js b/build/pdf.js index 005f234a9..f4c3c603f 100644 --- a/build/pdf.js +++ b/build/pdf.js @@ -23,8 +23,8 @@ } }(this, function (exports) { 'use strict'; - var pdfjsVersion = '1.6.334'; - var pdfjsBuild = '787d887'; + var pdfjsVersion = '1.6.336'; + var pdfjsBuild = '9d8fb02'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; var pdfjsLibs = {}; (function pdfjsWrapper() { @@ -6745,7 +6745,7 @@ return; } var name = fontObj.loadedName || 'sans-serif'; - var bold = fontObj.black ? fontObj.bold ? '900' : 'bold' : fontObj.bold ? 'bold' : 'normal'; + var bold = fontObj.black ? '900' : fontObj.bold ? 'bold' : 'normal'; var italic = fontObj.italic ? 'italic' : 'normal'; var typeface = '"' + name + '", ' + fontObj.fallbackName; var browserFontSize = size < MIN_FONT_SIZE ? MIN_FONT_SIZE : size > MAX_FONT_SIZE ? MAX_FONT_SIZE : size; diff --git a/build/pdf.worker.js b/build/pdf.worker.js index c42693c64..623d48eac 100644 --- a/build/pdf.worker.js +++ b/build/pdf.worker.js @@ -23,8 +23,8 @@ } }(this, function (exports) { 'use strict'; - var pdfjsVersion = '1.6.334'; - var pdfjsBuild = '787d887'; + var pdfjsVersion = '1.6.336'; + var pdfjsBuild = '9d8fb02'; var pdfjsFilePath = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : null; var pdfjsLibs = {}; (function pdfjsWrapper() { @@ -20458,6 +20458,10 @@ t['ArialBlack-Bold'] = 'Helvetica-Bold'; t['ArialBlack-BoldItalic'] = 'Helvetica-BoldOblique'; t['ArialBlack-Italic'] = 'Helvetica-Oblique'; + t['Arial-Black'] = 'Helvetica'; + t['Arial-Black-Bold'] = 'Helvetica-Bold'; + t['Arial-Black-BoldItalic'] = 'Helvetica-BoldOblique'; + t['Arial-Black-Italic'] = 'Helvetica-Oblique'; t['Arial'] = 'Helvetica'; t['Arial-Bold'] = 'Helvetica-Bold'; t['Arial-BoldItalic'] = 'Helvetica-BoldOblique'; @@ -37617,7 +37621,7 @@ for (charCode in GlyphMapForStandardFonts) { map[+charCode] = GlyphMapForStandardFonts[charCode]; } - if (/ArialBlack/i.test(name)) { + if (/Arial-?Black/i.test(name)) { var SupplementalGlyphMapForArialBlack = getSupplementalGlyphMapForArialBlack(); for (charCode in SupplementalGlyphMapForArialBlack) { map[+charCode] = SupplementalGlyphMapForArialBlack[charCode]; diff --git a/package.json b/package.json index ba0295ae4..ccc4ba93e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfjs-dist", - "version": "1.6.334", + "version": "1.6.336", "main": "build/pdf.js", "description": "Generic build of Mozilla's PDF.js library.", "keywords": [