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
-
.convert(ufo, output_path:) ⇒ String
The output_path.
Class Method Details
.convert(ufo, output_path:) ⇒ String
Returns 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 |