Class: Fontisan::Commands::FeaturesCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/fontisan/commands/features_command.rb

Overview

Command to extract and display features from GSUB/GPOS tables

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

Constructor Details

This class inherits a constructor from Fontisan::Commands::BaseCommand

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
# File 'lib/fontisan/commands/features_command.rb', line 9

def run
  script = @options[:script]

  # If no script specified, show features for all scripts
  return features_for_all_scripts unless script

  # Show features for specific script
  features_for_script(script)
end