summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-ctx.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/font-ctx.lua')
-rw-r--r--tex/context/base/mkiv/font-ctx.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/font-ctx.lua b/tex/context/base/mkiv/font-ctx.lua
index 3b2676667..e6ed58492 100644
--- a/tex/context/base/mkiv/font-ctx.lua
+++ b/tex/context/base/mkiv/font-ctx.lua
@@ -329,13 +329,21 @@ function definers.resetnullfont()
definers.resetnullfont = function() end
end
+-- This is some initialization code and we don't want (tracing) clutter in lmtx
+-- which is why we follow a different route there. I admit that is sounds freaky.
+-- Watch out: in lmtx the font dimen array is no longer resized automatically.
+
implement {
name = "resetnullfont",
onlyonce = true,
actions = function()
for i=1,7 do
- -- we have no direct method yet
- context([[\fontdimen%s\nullfont\zeropoint]],i)
+ if CONTEXTLMTXMODE > 0 then
+ font.setfontdimen(0,i,0)
+ else
+ -- we have no direct method
+ context([[\fontdimen%s\nullfont\zeropoint]],i)
+ end
end
definers.resetnullfont()
end