summaryrefslogtreecommitdiff
path: root/luaotfload-tool.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-05 10:47:58 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-05 10:47:58 +0200
commit645d1c970f45b4f322b687882af351f088dd748c (patch)
tree521c009b10c02537357d406fe067357be929fe6d /luaotfload-tool.lua
parent98b8117843b91eea6d60a195f2905f249bfb7044 (diff)
downloadluaotfload-645d1c970f45b4f322b687882af351f088dd748c.tar.gz
[tool] make --inspect skip empty feature sets
Diffstat (limited to 'luaotfload-tool.lua')
-rwxr-xr-xluaotfload-tool.lua19
1 files changed, 14 insertions, 5 deletions
diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua
index c80f98e..d5cd8e7 100755
--- a/luaotfload-tool.lua
+++ b/luaotfload-tool.lua
@@ -610,11 +610,20 @@ end
local display_features = function (gsub, gpos)
texiowrite_nl ""
- print_heading("Features", 2)
- print_heading("GSUB Features", 3)
- display_feature_set(gsub)
- print_heading("GPOS Features", 3)
- display_feature_set(gpos)
+
+ if gsub or gpos then
+ print_heading("Features", 2)
+
+ if gsub then
+ print_heading("GSUB Features", 3)
+ display_feature_set(gsub)
+ end
+
+ if gpos then
+ print_heading("GPOS Features", 3)
+ display_feature_set(gpos)
+ end
+ end
end
local show_full_info = function (path, subfont, warnings)