diff --git a/lib/fontcustom.rb b/lib/fontcustom.rb index 03fbe005..bfc79b41 100644 --- a/lib/fontcustom.rb +++ b/lib/fontcustom.rb @@ -38,6 +38,7 @@ def gem_lib :no_hash => false, :debug => false, :force => false, - :quiet => false + :quiet => false, + :copyright => '' } end diff --git a/lib/fontcustom/cli.rb b/lib/fontcustom/cli.rb index 481e27e2..84bf3231 100644 --- a/lib/fontcustom/cli.rb +++ b/lib/fontcustom/cli.rb @@ -67,6 +67,9 @@ class CLI < Thor class_option :quiet, :aliases => "-q", :type => :boolean, :desc => "Hide status messages." + class_option :copyright, :aliases => %w|--copyright -r|, :type => :string, + :desc => "Copyright information." + # Required for Thor::Actions#template def self.source_root File.join Fontcustom.gem_lib, "templates" diff --git a/lib/fontcustom/scripts/generate.py b/lib/fontcustom/scripts/generate.py index 399248f5..169c17f6 100755 --- a/lib/fontcustom/scripts/generate.py +++ b/lib/fontcustom/scripts/generate.py @@ -39,6 +39,7 @@ font.fontname = options['font_name'] font.familyname = options['font_name'] font.fullname = options['font_name'] +font.copyright = options['copyright'] if options['autowidth']: font.autoWidth(0, 0, options['font_em']) diff --git a/lib/fontcustom/templates/fontcustom.yml b/lib/fontcustom/templates/fontcustom.yml index 69a38ba7..2452dac6 100644 --- a/lib/fontcustom/templates/fontcustom.yml +++ b/lib/fontcustom/templates/fontcustom.yml @@ -30,6 +30,9 @@ # Hide status messages. #quiet: true +# Copyright information. +#copyright: + # ----------------------------------------------------------------------------- # Input / Output Locations