From: Vivien Nicolas <21@vingtetun.org> Date: Wed, 7 Sep 2011 17:56:45 +0000 (+0200) Subject: Refactor translateFont() to be more readable - part3 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c5b83eaf73ba97d4e4c25baf2ff0c4f3666402bd;p=pdf.js.git Refactor translateFont() to be more readable - part3 --- diff --git a/pdf.js b/pdf.js index f9f3654..7970b0f 100644 --- a/pdf.js +++ b/pdf.js @@ -4415,12 +4415,20 @@ var PartialEvaluator = (function() { map[i] = GlyphsUnicode[j] || 0; } } + + var properties = { + type: type.name, + encoding: map, + differences: [], + firstChar: 0, + lastChar: 256 + }; + this.extractEncoding(dict, xref, properties); + return { name: baseFontName, dict: baseDict, - properties: { - encoding: map - } + properties: properties }; }