diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-04-21 22:44:47 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-04-21 22:44:47 +0200 |
commit | 01eb99bf60b6d94485a9deee54b4c259939ce3e8 (patch) | |
tree | 1ebbf95385adb3d49033536b4019772b6cba6626 /scripts | |
parent | 726df97b4fd308f923fb1b4bf00ce533a7c88ebe (diff) | |
download | context-01eb99bf60b6d94485a9deee54b4c259939ce3e8.tar.gz |
2016-04-21 19:39:00
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/context/lua/mtx-fonts.lua | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/scripts/context/lua/mtx-fonts.lua b/scripts/context/lua/mtx-fonts.lua index f881e3d3b..7af80a156 100644 --- a/scripts/context/lua/mtx-fonts.lua +++ b/scripts/context/lua/mtx-fonts.lua @@ -240,22 +240,28 @@ local function fontweight(fw) end end +local function indeed(f,s) + if s and s ~= "" then + report(f,s) + end +end + local function showfeatures(tag,specification) report() - report("mapping : %s",tag) - report("fontname : %s",specification.fontname) - report("fullname : %s",specification.fullname) - report("filename : %s",specification.filename) - report("family : %s",specification.familyname or "<nofamily>") - -- report("subfamily : %s",specification.subfamilyname or "<nosubfamily>") - report("weight : %s",specification.weight or "<noweight>") - report("style : %s",specification.style or "<nostyle>") - report("width : %s",specification.width or "<nowidth>") - report("variant : %s",specification.variant or "<novariant>") - report("subfont : %s",subfont(specification.subfont)) - report("fweight : %s",fontweight(specification.fontweight)) + indeed("mapping : %s",tag) + indeed("fontname : %s",specification.fontname) + indeed("fullname : %s",specification.fullname) + indeed("filename : %s",specification.filename) + indeed("family : %s",specification.familyname or "<nofamily>") + -- indeed("subfamily : %s",specification.subfamilyname or "<nosubfamily>") + indeed("weight : %s",specification.weight or "<noweight>") + indeed("style : %s",specification.style or "<nostyle>") + indeed("width : %s",specification.width or "<nowidth>") + indeed("variant : %s",specification.variant or "<novariant>") + indeed("subfont : %s",subfont(specification.subfont)) + indeed("fweight : %s",fontweight(specification.fontweight)) -- maybe more - local features = fonts.helpers.getfeatures(specification.filename,specification.format) + local features = fonts.helpers.getfeatures(specification.filename,not getargument("nosave")) if features then for what, v in table.sortedhash(features) do local data = features[what] |