From 7ea40dde6618c80b4404c88b4a95c7deab6fc307 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Fri, 30 Nov 2012 22:53:00 +0100 Subject: beta 2012.11.30 22:53 --- tex/context/base/font-ctx.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 d4baec7bd..1e10e2e68 100644 --- a/tex/context/base/font-ctx.lua +++ b/tex/context/base/font-ctx.lua @@ -674,8 +674,8 @@ local function withset(name,what) texattribute[0] = done end -local function withfnt(name,what) - local font = currentfont() +local function withfnt(name,what,font) + local font = font or currentfont() local hash = font .. "*" .. name .. "*" .. what local done = cache[hash] if not done then -- cgit v1.2.3