summaryrefslogtreecommitdiff
path: root/tex/context/base/font-ctx.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-05-18 02:06:00 +0200
committerHans Hagen <pragma@wxs.nl>2013-05-18 02:06:00 +0200
commit086117c3bfcbf741aa00e4fc3cc67b0659125880 (patch)
tree56a1d2313ad7eab2f5c5c8a6f9af762cc0564c27 /tex/context/base/font-ctx.lua
parentee89a80d8d8082d1e73db02183c539a385884f6f (diff)
downloadcontext-086117c3bfcbf741aa00e4fc3cc67b0659125880.tar.gz
beta 2013.05.18 02:06
Diffstat (limited to 'tex/context/base/font-ctx.lua')
-rw-r--r--tex/context/base/font-ctx.lua6
1 files changed, 4 insertions, 2 deletions
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,