summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-col.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-05-27 20:39:37 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-05-27 20:39:37 +0200
commit0354ea8393c57ad00606d233468c39928e9d4b4a (patch)
treec087ba71c2e6458671101d3e485edb287dccc153 /tex/context/base/mkiv/font-col.lua
parent82aed3e7e8af29f359ebef4f93684d20e98107e6 (diff)
downloadcontext-0354ea8393c57ad00606d233468c39928e9d4b4a.tar.gz
2017-05-27 18:57:00
Diffstat (limited to 'tex/context/base/mkiv/font-col.lua')
-rw-r--r--tex/context/base/mkiv/font-col.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/tex/context/base/mkiv/font-col.lua b/tex/context/base/mkiv/font-col.lua
index bce16fae7..8c96202ec 100644
--- a/tex/context/base/mkiv/font-col.lua
+++ b/tex/context/base/mkiv/font-col.lua
@@ -49,6 +49,7 @@ collections.vectors = vectors
local fontdata = fonts.hashes.identifiers
local chardata = fonts.hashes.characters
+local propdata = fonts.hashes.properties
local currentfont = font.current
local fontpatternhassize = fonts.helpers.fontpatternhassize
@@ -220,13 +221,15 @@ function collections.prepare(name) -- we can do this in lua now .. todo
if vectors[current] then
return
end
- if fontdata[current].mathparameters then
+ local properties = propdata[current]
+ local mathsize = properties.mathsize
+ if mathsize == 1 or mathsize == 2 or mathsize == 3 then
return
end
local d = definitions[name]
if d then
if trace_collecting then
- local filename = file.basename(fontdata[current].properties.filename or "?")
+ local filename = file.basename(properties.filename or "?")
report_fonts("applying collection %a to %a, file %a",name,current,filename)
end
list = { }
@@ -246,9 +249,6 @@ function collections.prepare(name) -- we can do this in lua now .. todo
context.font_fallbacks_prepare_clone_vectors(name)
context.font_fallbacks_stop_cloning()
context.popcatcodes() -- context.protect()
- elseif trace_collecting then
- local filename = file.basename(fontdata[current].properties.filename or "?")
- report_fonts("error while applying collection %a to %a, file %a",name,current,filename)
end
end