6 use lib 'ext/Font-TTF/lib';
15 Lists GSUB/GPOS features in a font.
18 $0 [options] [inputfile.ttf]
29 my $result = GetOptions(
34 my ($input_file) = @ARGV;
36 my $font = Font::TTF::Font->open($input_file) or die "Error opening $input_file: $!";
40 for my $table (grep defined, $font->{GPOS}, $font->{GSUB}) {
42 for my $feature (@{$table->{FEATURES}{FEAT_TAGS}}) {
43 $feature =~ /^(\w{4})( _\d+)?$/ or die "Unrecognised feature tag syntax '$feature'";
45 next if $feats{$tag}++;
49 print map "$_\n", @feats;