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

fixed up minor bugs

This commit is contained in:
sbarman 2011-07-07 17:15:53 -07:00
parent 8ac2367fa0
commit c39eae3ce9
2 changed files with 14 additions and 17 deletions

3
pdf.js
View file

@ -3687,7 +3687,6 @@ var CanvasGraphics = (function() {
var font = xref.fetchIfRef(fontRes.get(args[0].name));
assertWellFormed(IsDict(font));
if (!font.translated) {
// sbarman marker
font.translated = this.translateFont(font, xref, resources);
if (fonts && font.translated) {
// keep track of each font we translated so the caller can
@ -3886,7 +3885,7 @@ var CanvasGraphics = (function() {
this.ctx.$setFont(fontName, size);
} else {
this.ctx.font = size + 'px "' + fontName + '"';
Fonts.setActive(font, size);
Fonts.setActive(fontObj, size);
}
},
setTextRenderingMode: function(mode) {