Class: DragonflyFonts::Processors::TtfAutohint
- Inherits:
-
Object
- Object
- DragonflyFonts::Processors::TtfAutohint
- Defined in:
- lib/dragonfly_fonts/processors/ttf_autohint.rb
Instance Method Summary collapse
Instance Method Details
#call(content) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/dragonfly_fonts/processors/ttf_autohint.rb', line 4 def call(content) raise UnsupportedFormat unless content.ext raise UnsupportedFormat unless TTF_AUTOHINT_SUPPORTED_FORMATS.include?(content.ext.downcase) content.shell_update(ext: content.ext || 'ttf') do |old_path, new_path| "#{ttfautohint_command} --strong-stem-width='' --windows-compatibility --composites #{old_path} #{new_path}" end end |
#update_url(attrs, *_args) ⇒ Object
13 14 15 |
# File 'lib/dragonfly_fonts/processors/ttf_autohint.rb', line 13 def update_url(attrs, *_args) attrs.style = 'ttfautohint' end |