mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
First pass on FontWorker
This commit is contained in:
parent
c712712e67
commit
b00df76044
8 changed files with 247 additions and 22 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