mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Make worker code work with latest font code changes
This commit is contained in:
parent
16e1eadf93
commit
31e9bea5c9
2 changed files with 9 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue