From 1a4587e7d792561d779de21e88eb424539085090 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Wed, 18 May 2011 18:04:00 +0200 Subject: stable 2011.05.18 18:04 --- tex/context/base/font-ctx.lua | 6 ++++-- 1 file changed, 4 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 1bc3f3db9..887aa9984 100644 --- a/tex/context/base/font-ctx.lua +++ b/tex/context/base/font-ctx.lua @@ -726,6 +726,7 @@ function definers.stage_two(global,cs,str,size,inheritancemode,classfeatures,fon setsomefontsize(fontdata[tfmdata].parameters.size .. "sp") texsetcount("global","lastfontid",tfmdata) else +tfmdata.characters[0] = nil -- we use char0 as signal -- local t = os.clock(t) local id = font.define(tfmdata) -- print(name,os.clock()-t) @@ -1099,8 +1100,9 @@ function commands.showchardata(n) end end -function commands.showfontparameters() - local tfmdata = fontdata[currentfont()] +function commands.showfontparameters(tfmdata) + -- this will become more clever + local tfmdata = tfmdata or fontdata[currentfont()] if tfmdata then local parameters = tfmdata.parameters local mathparameters = tfmdata.mathparameters -- cgit v1.2.3