Module: Fontisan::Ufo::Convert::ToOtf2

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

Overview

Thin facade over Compile::Otf2Compiler (CFF2 outlines, used for variable OTF). CFF2 still inherits the 65,535-glyph cap because maxp.numGlyphs is uint16 — see Stitcher::GlyphLimit.

Class Method Summary collapse

Class Method Details

.convert(ufo, output_path:) ⇒ String

Returns the output_path.

Parameters:

Returns:

  • (String)

    the output_path



13
14
15
16
# File 'lib/fontisan/ufo/convert/to_otf2.rb', line 13

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