mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Fix a small broking mistake in fonts.js
This commit is contained in:
parent
674d6a7d18
commit
e347ad03d9
1 changed files with 2 additions and 3 deletions
5
fonts.js
5
fonts.js
|
@ -2613,14 +2613,13 @@ var Type2CFF = (function type2CFF() {
|
|||
var glyph = charsets[i];
|
||||
var code = glyphMap[glyph] || 0;
|
||||
|
||||
var mapping = glyphs[code] || glyphs[glyph] || {};
|
||||
var mapping = glyphs[code] || glyphs[glyph] || { width: defaultWidth };
|
||||
var unicode = mapping.unicode;
|
||||
|
||||
if (unicode <= 0x1f || (unicode >= 127 && unicode <= 255))
|
||||
unicode += kCmapGlyphOffset;
|
||||
|
||||
var width = ('width' in mapping) && isNum(mapping.width) ? mapping.width
|
||||
: defaultWidth;
|
||||
var width = isNum(mapping.width) ? mapping.width : defaultWidth;
|
||||
properties.encoding[code] = {
|
||||
unicode: unicode,
|
||||
width: width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue