Merge branch 'master' of github.com:andreasgal/pdf.js
This commit is contained in:
commit
a018fe60ef
6
pdf.js
6
pdf.js
@ -996,6 +996,7 @@ var Interpreter = (function() {
|
|||||||
this.res = resources;
|
this.res = resources;
|
||||||
this.catalog = catalog;
|
this.catalog = catalog;
|
||||||
this.gfx = gfx;
|
this.gfx = gfx;
|
||||||
|
var env = this;
|
||||||
this.map = {
|
this.map = {
|
||||||
// Graphics state
|
// Graphics state
|
||||||
w: gfx.setLineWidth,
|
w: gfx.setLineWidth,
|
||||||
@ -1020,7 +1021,10 @@ var Interpreter = (function() {
|
|||||||
// Text
|
// Text
|
||||||
BT: gfx.beginText,
|
BT: gfx.beginText,
|
||||||
ET: gfx.endText,
|
ET: gfx.endText,
|
||||||
Tf: gfx.setFont,
|
Tf: function(fontRef, size) {
|
||||||
|
var font = env.res.Font[fontRef.name]
|
||||||
|
gfx.setFont(font, size);
|
||||||
|
},
|
||||||
Td: gfx.moveText,
|
Td: gfx.moveText,
|
||||||
Tj: gfx.showText,
|
Tj: gfx.showText,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user