Module: Fontisan::Ufo::Convert::ToTtf

Defined in:
lib/fontisan/ufo/convert/to_ttf.rb

Overview

Thin facade over Compile::TtfCompiler. Exists so callers have a uniform Ufo::Convert::To{Format}.convert API across all output formats, and so the CLI's format dispatch can be a hash lookup instead of a case statement.

Class Method Summary collapse

Class Method Details

.convert(ufo, output_path:) ⇒ String

Returns the output_path.

Parameters:

Returns:

  • (String)

    the output_path



14
15
16
17
# File 'lib/fontisan/ufo/convert/to_ttf.rb', line 14

def self.convert(ufo, output_path:)
  Compile::TtfCompiler.new(ufo).compile(output_path: output_path)
  output_path
end