From 70f57c08e38c62a099bf3e219da08e537ad72ced Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Mon, 14 May 2012 09:19:00 +0200 Subject: beta 2012.05.14 09:19 --- tex/context/base/font-ctx.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tex/context/base/font-ctx.lua') diff --git a/tex/context/base/font-ctx.lua b/tex/context/base/font-ctx.lua index 5680ee69e..4b324a6db 100644 --- a/tex/context/base/font-ctx.lua +++ b/tex/context/base/font-ctx.lua @@ -99,6 +99,19 @@ local nulldata = { constructors.enhanceparameters(nulldata.parameters) -- official copies for us +local limited = false + +directives.register("system.inputmode", function(v) + if not limited then + local i_limiter = io.i_limiter(v) + if i_limiter then + fontloader.open = i_limiter.protect(fontloader.open) + fontloader.info = i_limiter.protect(fontloader.info) + limited = true + end + end +end) + function definers.resetnullfont() -- resetting is needed because tikz misuses nullfont local parameters = nulldata.parameters -- cgit v1.2.3