Class: Fontist::Import::OtfinfoGenerate

Inherits:
Object
  • Object
show all
Defined in:
lib/fontist/import/otfinfo_generate.rb

Constant Summary collapse

TEMPLATE_PATH =
File.expand_path("otfinfo/template.erb", __dir__)

Instance Method Summary collapse

Constructor Details

#initialize(font) ⇒ OtfinfoGenerate

Returns a new instance of OtfinfoGenerate.



12
13
14
# File 'lib/fontist/import/otfinfo_generate.rb', line 12

def initialize(font)
  @font = font
end

Instance Method Details

#callObject



16
17
18
19
20
21
# File 'lib/fontist/import/otfinfo_generate.rb', line 16

def call
  paths = font_paths(@font)
  puts paths
  styles = generate_styles(paths)
  puts render(styles)
end