diff options
| author | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-05 10:47:58 +0200 | 
|---|---|---|
| committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-08-05 10:47:58 +0200 | 
| commit | 645d1c970f45b4f322b687882af351f088dd748c (patch) | |
| tree | 521c009b10c02537357d406fe067357be929fe6d | |
| parent | 98b8117843b91eea6d60a195f2905f249bfb7044 (diff) | |
| download | luaotfload-645d1c970f45b4f322b687882af351f088dd748c.tar.gz | |
[tool] make --inspect skip empty feature sets
| -rwxr-xr-x | luaotfload-tool.lua | 19 | 
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) | 
