summaryrefslogtreecommitdiff
path: root/tex/context/modules/mkiv/s-fonts-variable.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-04-27 01:41:25 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-04-27 01:41:25 +0200
commit762562da00d0ec1d50e6d3c2a701156ab42e6d71 (patch)
tree2dc664caa951963a393b0a2a9c9c85d1db6b8e10 /tex/context/modules/mkiv/s-fonts-variable.lua
parentf2a20e191bf71094aa21d37dee2ecd2f804dbc56 (diff)
downloadcontext-762562da00d0ec1d50e6d3c2a701156ab42e6d71.tar.gz
2017-04-27 01:06:00
Diffstat (limited to 'tex/context/modules/mkiv/s-fonts-variable.lua')
-rw-r--r--tex/context/modules/mkiv/s-fonts-variable.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/tex/context/modules/mkiv/s-fonts-variable.lua b/tex/context/modules/mkiv/s-fonts-variable.lua
index d50df0121..d166e320c 100644
--- a/tex/context/modules/mkiv/s-fonts-variable.lua
+++ b/tex/context/modules/mkiv/s-fonts-variable.lua
@@ -28,7 +28,6 @@ function moduledata.fonts.variable.showvariations(specification)
if not fontfile then
return
end
-
local id, fontdata = fonts.definers.define {
name = fontfile,
-- size = fontsize,
@@ -36,7 +35,7 @@ function moduledata.fonts.variable.showvariations(specification)
}
if not fontdata then
- context("no font with name %a found",fontname)
+ context.type("no font with name %a found",fontname)
end
local resources = fontdata.resources
@@ -45,11 +44,11 @@ function moduledata.fonts.variable.showvariations(specification)
return
end
- local variabledata = resources.variabledata
+ local variabledata = resources.variabledata or { }
- if not variabledata then
- return
- end
+-- if not variabledata then
+-- return
+-- end
context.starttitle { title = fontdata.shared.rawdata.metadata.fullname }