From 17ba5e3f68bd187a526c3ab11043c929ca69b0d5 Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Sun, 2 Oct 2011 20:06:57 -0500 Subject: [PATCH] Add comment for type3 bypass --- pdf.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdf.js b/pdf.js index 4632ae942..80c7f7487 100644 --- a/pdf.js +++ b/pdf.js @@ -4751,6 +4751,9 @@ var PartialEvaluator = (function partialEvaluator() { // This case is here for compatibility. var descriptor = xref.fetchIfRef(dict.get('FontDescriptor')); if (!descriptor) { + // Note for Type3 fonts: it has no no base font, feeding default + // font name and trying to get font metrics as the same way as for + // a font without descriptor. var baseFontName = dict.get('BaseFont') || new Name('sans-serif'); // Using base font name as a font name.