lib/middleman-fontcustom/extension.rb in middleman-fontcustom-0.2.1 vs lib/middleman-fontcustom/extension.rb in middleman-fontcustom-0.3.0

- old
+ new

@@ -7,10 +7,11 @@ option :fonts_dir, 'source/fonts', 'Folder to output fonts' option :css_dir, 'source/stylesheets', 'Folder to output css' option :templates, 'scss', 'Output templates' option :no_hash, true, 'Create hash for no cache policy' option :preprocessor_path, nil, 'Relative path from your compiled CSS to your output directory' + option :autowidth, false, 'Trims horizontal white space from each glyph.' def initialize(app, options_hash={}, &block) super return unless app.environment == :development @@ -25,10 +26,11 @@ :fonts => config[:fonts_dir], :css => config[:css_dir] }, :templates => config[:templates].split(/\s/), :no_hash => config[:no_hash], - :preprocessor_path => config[:preprocessor_path] + :preprocessor_path => config[:preprocessor_path], + :autowidth => config[:autowidth] }).compile } app.ready do