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 #95 from jviereck/master

Make processing of fonts happen in a worker.
This commit is contained in:
Chris Jones 2011-06-28 14:56:10 -07:00
commit 7c9bf1f36f
8 changed files with 291 additions and 40 deletions

3
pdf.js
View file

@ -3819,6 +3819,9 @@ var CanvasGraphics = (function() {
this.current.fontSize = size;
this.ctx.font = this.current.fontSize +'px "' + fontName + '", Symbol';
if (this.ctx.$setFont) {
this.ctx.$setFont(fontName);
}
},
setTextRenderingMode: function(mode) {
TODO("text rendering mode");