summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/font-vf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/font-vf.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/font-vf.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/context/base/font-vf.lua b/Master/texmf-dist/tex/context/base/font-vf.lua
index 287d073d6bd..1fe6dd71c1d 100644
--- a/Master/texmf-dist/tex/context/base/font-vf.lua
+++ b/Master/texmf-dist/tex/context/base/font-vf.lua
@@ -7,10 +7,13 @@ if not modules then modules = { } end modules ['font-vf'] = {
}
--[[ldx--
-<p>This is very experimental code! Not yet adapted to recent
-changes. This will change.</p>
+<p>This is very experimental code! Not yet adapted to recent changes. This will change.</p>
--ldx]]--
+-- present in the backend but unspecified:
+--
+-- vf.rule vf.special vf.right vf.push vf.down vf.char vf.node vf.fontid vf.pop vf.image vf.nop
+
local next = next
local allocate = utilities.storage.allocate
@@ -19,8 +22,7 @@ local fastcopy = table.fastcopy
local fonts = fonts
local constructors = fonts.constructors
-local vf = { }
-fonts.handlers.vf = vf
+local vf = constructors.newhandler("vf")
-- general code
@@ -30,18 +32,18 @@ function vf.find(name)
local format = fonts.loggers.format(name)
if format == 'tfm' or format == 'ofm' then
if trace_defining then
- report_defining("locating vf for %s",name)
+ report_defining("locating vf for %a",name)
end
return findbinfile(name,"ovf")
else
if trace_defining then
- report_defining("vf for %s is already taken care of",name)
+ report_defining("vf for %a is already taken care of",name)
end
return nil -- ""
end
else
if trace_defining then
- report_defining("locating vf for %s",name)
+ report_defining("locating vf for %a",name)
end
return findbinfile(name,"ovf")
end