From c5b83eaf73ba97d4e4c25baf2ff0c4f3666402bd Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <21@vingtetun.org> Date: Wed, 7 Sep 2011 19:56:45 +0200 Subject: [PATCH] Refactor translateFont() to be more readable - part3 --- pdf.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pdf.js b/pdf.js index f9f3654f9..7970b0fac 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 }; }