1
0
Fork 0
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:
Julian Viereck 2011-06-26 20:55:27 +02:00
parent c712712e67
commit b00df76044
8 changed files with 247 additions and 22 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");