Make worker code work with latest font code changes

This commit is contained in:
Julian Viereck 2011-06-29 14:26:38 +02:00
parent 16e1eadf93
commit 31e9bea5c9
2 changed files with 9 additions and 10 deletions

View file

@ -250,9 +250,10 @@ function WorkerPDFDoc(canvas) {
}
this.strokeStyle = pattern;
},
"$setFont": function(name) {
Fonts.active = name;
"$setFont": function(name, size) {
this.font = size + 'px "' + name + '"';
Fonts.setActive(name, size);
}
}