summaryrefslogtreecommitdiff
path: root/metapost/context/base/mpiv/mp-lmtx.mpxl
diff options
context:
space:
mode:
Diffstat (limited to 'metapost/context/base/mpiv/mp-lmtx.mpxl')
-rw-r--r--metapost/context/base/mpiv/mp-lmtx.mpxl10
1 files changed, 7 insertions, 3 deletions
diff --git a/metapost/context/base/mpiv/mp-lmtx.mpxl b/metapost/context/base/mpiv/mp-lmtx.mpxl
index 46f399dc9..fe84872ea 100644
--- a/metapost/context/base/mpiv/mp-lmtx.mpxl
+++ b/metapost/context/base/mpiv/mp-lmtx.mpxl
@@ -2012,6 +2012,8 @@ enddef ;
presetparameters "svg" [
filename = "",
+ fontname = "",
+ % unicode = 0,
width = 0,
height = 0,
] ;
@@ -2020,10 +2022,12 @@ def lmt_svg = applyparameters "svg" "lmt_do_svg" enddef ;
vardef lmt_do_svg =
save w, h ;
- w := getparameter "svg" "width" ;
- h := getparameter "svg" "height" ;
image (
- lua.mp.lmt_svg_include()
+ pushparameters "svg" ;
+ w := getparameter "width" ;
+ h := getparameter "height" ;
+ lua.mp.lmt_svg_include() ;
+ popparameters ;
)
if w > 0 :
if h > 0 : xysized(w,h) else : xsized(w) fi