summaryrefslogtreecommitdiff
path: root/tex/context/base/font-gds.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2009-10-19 14:43:00 +0200
committerHans Hagen <pragma@wxs.nl>2009-10-19 14:43:00 +0200
commite95ec93b5fe70c7d0e16071a1df8777cb9289d3b (patch)
tree3ea17776ea748226d95e52b420a5f30394e2d1eb /tex/context/base/font-gds.lua
parentea36ada779b87db193b865429d5db510713038a4 (diff)
downloadcontext-e95ec93b5fe70c7d0e16071a1df8777cb9289d3b.tar.gz
beta 2009.10.19 14:43
Diffstat (limited to 'tex/context/base/font-gds.lua')
-rw-r--r--tex/context/base/font-gds.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tex/context/base/font-gds.lua b/tex/context/base/font-gds.lua
index 95623df1c..9a59b404e 100644
--- a/tex/context/base/font-gds.lua
+++ b/tex/context/base/font-gds.lua
@@ -11,6 +11,8 @@ local type, next = type, next
local gmatch = string.gmatch
-- goodies=name,colorscheme=,featureset=
+--
+-- goodies=auto
-- goodies
@@ -52,8 +54,9 @@ fonts.goodies.get = getgoodies
local preset_context = fonts.define.specify.preset_context
function fonts.initializers.common.goodies(tfmdata,value)
- local goodies = { }
+ local goodies = tfmdata.goodies or { } -- future versions might store goodies in the cached instance
for filename in gmatch(value,"[^, ]+") do
+ -- we need to check for duplicates
local ok = getgoodies(filename)
if ok then
goodies[#goodies+1] = ok