class Fontist::Import::Otfinfo::OtfinfoRequirement

Public Class Methods

new() click to toggle source
# File lib/fontist/import/otfinfo/otfinfo_requirement.rb, line 7
def initialize
  otfinfo_path = `which otfinfo`
  if otfinfo_path.empty?
    abort "otfinfo is not available. (Or is PATH not setup properly?)"\
      " You must install otfinfo."\
      " On macOS it can be installed via `brew install lcdf-typetools`."
  end
end

Public Instance Methods

call(path) click to toggle source
# File lib/fontist/import/otfinfo/otfinfo_requirement.rb, line 16
def call(path)
  Helpers::SystemHelper.run("otfinfo --info '#{path}'")
end