]> git.parisson.com Git - pdf.js.git/commitdiff
Add comment for type3 bypass
authornotmasteryet <async.processingjs@yahoo.com>
Mon, 3 Oct 2011 01:06:57 +0000 (20:06 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Mon, 3 Oct 2011 01:06:57 +0000 (20:06 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index 4632ae9422604ed93253215e4d2400a8e650dc64..80c7f748736e100a510700e8fe9a329b03bddeee 100644 (file)
--- 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.