summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/font-vfc.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-10-19 00:16:55 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-10-19 00:16:55 +0200
commit9d2ad7dea5c20379f6679c57c3b16752b1af445a (patch)
tree45f39853be982c52f7386b968cf4f15f1f70ccce /tex/context/base/mkxl/font-vfc.lmt
parent6ca88e6f1f15cea89db047839c3126a501f39eea (diff)
downloadcontext-9d2ad7dea5c20379f6679c57c3b16752b1af445a.tar.gz
2021-10-18 23:13:00
Diffstat (limited to 'tex/context/base/mkxl/font-vfc.lmt')
-rw-r--r--tex/context/base/mkxl/font-vfc.lmt18
1 files changed, 17 insertions, 1 deletions
diff --git a/tex/context/base/mkxl/font-vfc.lmt b/tex/context/base/mkxl/font-vfc.lmt
index 93e6fd4e5..c28b8b988 100644
--- a/tex/context/base/mkxl/font-vfc.lmt
+++ b/tex/context/base/mkxl/font-vfc.lmt
@@ -81,10 +81,26 @@ helpers.commands = utilities.storage.allocate {
dummy = dummy,
}
+local codeinjections = backends.codeinjections
+local vfstartcolor = codeinjections.vfstartcolor
+local vfstopcolor = codeinjections.vfstopcolor
+----- vfliteral = codeinjections.vfliteral
+
helpers.vfinjectors = {
- -- backend specific: startcolor, stopcolor etc
+ -- startcolor = function(h,v,packet) codeinjections.vfstartcolor(h,v,packet) end,
+ -- stopcolor = function(h,v,packet) codeinjections.vfstartcolor(h,v,packet) end,
+ -- literal = function(h,v,packet) codeinjections.vfliteral (h,v,packer) end,
+ startcolor = function(h,v,packet) vfstartcolor(h,v,packet) end,
+ stopcolor = function(h,v,packet) vfstartcolor(h,v,packet) end,
+ -- literal = function(h,v,packet) vfliteral (h,v,packer) end,
}
+updaters.register("backends.injections.latebindings",function()
+ vfstartcolor = backends.codeinjections.vfstartcolor
+ vfstopcolor = backends.codeinjections.vfstopcolor
+ -- vfliteral = backends.codeinjections.vfliteral
+end)
+
-- maybe round()
local defaultline = 16384