From 086117c3bfcbf741aa00e4fc3cc67b0659125880 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sat, 18 May 2013 02:06:00 +0200 Subject: beta 2013.05.18 02:06 --- 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 8ae74435f..2583c6520 100644 --- a/tex/context/base/font-ctx.lua +++ b/tex/context/base/font-ctx.lua @@ -1080,7 +1080,7 @@ end local n = 0 -function definers.internal(specification) +function definers.internal(specification,cs) specification = specification or { } local name = specification.name local size = specification.size and number.todimen(specification.size) or texdimen.bodyfontsize @@ -1089,11 +1089,13 @@ function definers.internal(specification) if number then id = number elseif name and name ~= "" then - local cs = specification.cs + local cs = cs or specification.cs if not cs then n = n + 1 -- beware ... there can be many and they are often used once -- cs = formatters["internal font %s"](n) cs = "internal font " .. n + else + specification.cs = cs end id = definers.define { name = name, -- cgit v1.2.3