From ce89840000bacc1d01ad2b4a2a799901d825eb12 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Thu, 14 Oct 2010 13:14:00 +0200 Subject: beta 2010.10.14 13:14 --- tex/context/base/font-ctx.lua | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 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 e5da6e868..b6c0dd3f3 100644 --- a/tex/context/base/font-ctx.lua +++ b/tex/context/base/font-ctx.lua @@ -470,20 +470,25 @@ function definers.define(specification) -- -- following calls expect a few properties to be set: -- - specification.lookup = specification.lookup or "file" - specification.specification = "" -- not used - specification.size = specification.size or 655260 - specification.sub = specification.sub or "" - specification.method = specification.method or "*" - specification.detail = specification.detail or "" - specification.resolved = "" - specification.forced = "" - specification.features = { } -- via detail + local lookup, name, sub, method, detail = getspecification(name or "") + -- + specification.name = (name ~= "" and name) or specification.name + -- + specification.lookup = specification.lookup or (lookup ~= "" and lookup) or "file" + specification.size = specification.size or 655260 + specification.sub = specification.sub or (sub ~= "" and sub) or "" + specification.method = specification.method or (method ~= "" and method) or "*" + specification.detail = specification.detail or (detail ~= "" and detail) or "" + -- + specification.specification = "" -- not used + specification.resolved = "" + specification.forced = "" + specification.features = { } -- via detail -- -- we don't care about mathsize textsize goodies fallbacks -- if specification.cs == "" then - specification.cs = nil + specification.cs = nil specification.global = false elseif specification.global == nil then specification.global = false -- cgit v1.2.3