summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/grph-rul.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-12-06 18:45:33 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-12-06 18:45:33 +0100
commitaff2893a6d6652223e92e3de18e1260cbd533fea (patch)
tree0167244365922a9a3bddad5dfce4aafe7cc6ec8b /tex/context/base/mkiv/grph-rul.lua
parent0477f879e2b574ad568732ad03784e5df1952fb7 (diff)
downloadcontext-aff2893a6d6652223e92e3de18e1260cbd533fea.tar.gz
2020-12-06 18:14:00
Diffstat (limited to 'tex/context/base/mkiv/grph-rul.lua')
-rw-r--r--tex/context/base/mkiv/grph-rul.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/grph-rul.lua b/tex/context/base/mkiv/grph-rul.lua
index 5067b0165..0582a0ad0 100644
--- a/tex/context/base/mkiv/grph-rul.lua
+++ b/tex/context/base/mkiv/grph-rul.lua
@@ -87,6 +87,8 @@ do
local replacer = utilities.templates.replacer
+ -- todo: RuleColor -> just string ?
+
local predefined = {
["fake:word"] = replacer [[
FakeWord(%width%,%height%,%depth%,%line%,%color%);
@@ -133,7 +135,9 @@ def RuleColor = %color% enddef ;
initialized = true
simplemetapost("rulefun",formatters["randomseed := %s;"](getrandom("rulefun",0,4095)))
end
- local pdf = caching and cache[code] or simplemetapost("rulefun",code) -- w, h, d
+ -- we enable extensions but we could also consider to delegate colors
+ -- to the node finalizer
+ local pdf = caching and cache[code] or simplemetapost("rulefun",code,true)
if trace_mp then
report_mp("code: %s",code)
report_mp("pdf : %s",pdf)