1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Merge pull request #443 from vingtetun/master

Partial fix for issue #440
This commit is contained in:
notmasteryet 2011-09-06 16:14:48 -07:00
commit 122e4c1e67
2 changed files with 43 additions and 2 deletions

5
pdf.js
View file

@ -4304,6 +4304,9 @@ var PartialEvaluator = (function() {
var index = GlyphsUnicode[glyph] || i;
glyphsMap[glyph] = encodingMap[i] = index;
if (!fontFile)
continue;
if (index <= 0x1f || (index >= 127 && index <= 255))
glyphsMap[glyph] = encodingMap[i] += kCmapGlyphOffset;
}
@ -4824,7 +4827,7 @@ var CanvasGraphics = (function() {
(fontObj.bold ? 'bold' : 'normal');
var italic = fontObj.italic ? 'italic' : 'normal';
var rule = italic + ' ' + bold + ' ' + size + 'px "' + name + '"';
var rule = italic + ' ' + bold + ' ' + size + 'px "' + name + '", "sans-serif"';
this.ctx.font = rule;
}
},