mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 17:18:07 +02:00
Merge branch 'master' of github.com:andreasgal/pdf.js
This commit is contained in:
commit
a018fe60ef
1 changed files with 5 additions and 1 deletions
6
pdf.js
6
pdf.js
|
@ -996,6 +996,7 @@ var Interpreter = (function() {
|
|||
this.res = resources;
|
||||
this.catalog = catalog;
|
||||
this.gfx = gfx;
|
||||
var env = this;
|
||||
this.map = {
|
||||
// Graphics state
|
||||
w: gfx.setLineWidth,
|
||||
|
@ -1020,7 +1021,10 @@ var Interpreter = (function() {
|
|||
// Text
|
||||
BT: gfx.beginText,
|
||||
ET: gfx.endText,
|
||||
Tf: gfx.setFont,
|
||||
Tf: function(fontRef, size) {
|
||||
var font = env.res.Font[fontRef.name]
|
||||
gfx.setFont(font, size);
|
||||
},
|
||||
Td: gfx.moveText,
|
||||
Tj: gfx.showText,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue