Restore font lookup and setting
This commit is contained in:
parent
195671adba
commit
82f49501c3
6
pdf.js
6
pdf.js
@ -984,6 +984,7 @@ var Interpreter = (function() {
|
||||
this.res = resources;
|
||||
this.catalog = catalog;
|
||||
this.gfx = gfx;
|
||||
var env = this;
|
||||
this.map = {
|
||||
// Graphics state
|
||||
w: gfx.setLineWidth,
|
||||
@ -1008,7 +1009,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…
x
Reference in New Issue
Block a user