Fixing double metrics issue for glyphs (#484)
This commit is contained in:
parent
82745def0a
commit
fc574f646a
8
pdf.js
8
pdf.js
@ -4357,7 +4357,13 @@ var PartialEvaluator = (function() {
|
||||
var lastChar = properties.lastChar;
|
||||
var glyphs = {};
|
||||
for (var i = firstChar; i <= lastChar; i++) {
|
||||
var glyph = differences[i] || baseEncoding[i];
|
||||
var glyph = differences[i];
|
||||
if (!glyph) {
|
||||
glyph = baseEncoding[i];
|
||||
// skipping already specified by difference glyphs
|
||||
if (differences.indexOf(glyph) >= 0)
|
||||
continue;
|
||||
}
|
||||
var index = GlyphsUnicode[glyph] || i;
|
||||
var width = properties.widths[i] || properties.widths[glyph];
|
||||
map[i] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user