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



13
14
15
16
17
18
19
20
21
# File 'lib/fontisan/commands/features_command.rb', line 13

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