summaryrefslogtreecommitdiff
path: root/tex/context/base/mlib-pdf.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-10-01 20:00:29 +0300
committerMarius <mariausol@gmail.com>2013-10-01 20:00:29 +0300
commitf861bacd6096d49a91faaeb5298864416e59bf8b (patch)
tree052ccde7f658c3b8bb54d0af0f1a3a566c44adb8 /tex/context/base/mlib-pdf.lua
parent352f6e8eed065de403b7c738501ec19170bc10be (diff)
downloadcontext-f861bacd6096d49a91faaeb5298864416e59bf8b.tar.gz
beta 2013.10.01 19:00
Diffstat (limited to 'tex/context/base/mlib-pdf.lua')
-rw-r--r--tex/context/base/mlib-pdf.lua22
1 files changed, 13 insertions, 9 deletions
diff --git a/tex/context/base/mlib-pdf.lua b/tex/context/base/mlib-pdf.lua
index 0115dfabe..8d7febf43 100644
--- a/tex/context/base/mlib-pdf.lua
+++ b/tex/context/base/mlib-pdf.lua
@@ -335,19 +335,23 @@ function metapost.flush(result,flusher,askedfig)
local bbox = figure:boundingbox()
local llx, lly, urx, ury = bbox[1], bbox[2], bbox[3], bbox[4]
local variables = { }
+ metapost.variables = variables
+ metapost.properties = {
+ llx = llx,
+ lly = lly,
+ urx = urx,
+ ury = ury,
+ slot = figure:charcode(),
+ width = figure:width(),
+ height = figure:height(),
+ depth = figure:depth(),
+ italic = figure:italcorr(),
+ }
+ -- replaced by the above
metapost.llx = llx
metapost.lly = lly
metapost.urx = urx
metapost.ury = ury
- metapost.variables = variables
--- todo (maybe the lib will change to charwd too):
---
--- metapost.charcode = figure.charcode
--- metapost.charwd = figure.width
--- metapost.charht = figure.height
--- metapost.chardp = figure.depth
--- metapost.charic = figure.italic
---
if urx < llx then
-- invalid
startfigure(fignum,0,0,0,0,"invalid",figure)