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:
commit
7c9bf1f36f
8 changed files with 291 additions and 40 deletions
3
pdf.js
3
pdf.js
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue