class Fontist::Import::SilImport

Constants

ROOT

Public Instance Methods

call() click to toggle source
# File lib/fontist/import/sil_import.rb, line 9
def call
  links = font_links
  Fontist.ui.success("Found #{links.size} links.")

  paths = []
  links.each do |link|
    path = create_formula_by_page_link(link)
    paths << path if path
  end

  Fontist::Index.rebuild

  Fontist.ui.success("Created #{paths.size} formulas.")
end