Class: DragonflyFonts::Analysers::Glyphs
- Inherits:
-
Object
- Object
- DragonflyFonts::Analysers::Glyphs
- Defined in:
- lib/dragonfly_fonts/analysers/glyphs.rb
Instance Method Summary collapse
Instance Method Details
#call(content) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/dragonfly_fonts/analysers/glyphs.rb', line 6 def call(content) return [] unless content.ext return [] unless FONT_FORGE_SUPPORTED_FORMATS.include?(content.ext.downcase) # details = content.shell_eval do |path| # "#{DragonflyFonts::SCRIPT_DIR.join('glyphs.py')} #{path}" # end command = "#{DragonflyFonts::SCRIPT_DIR.join('glyphs.py')} #{content.path}" details, stderr_str, status = Open3.capture3(command) return [] unless details.present? JSON.parse(details) end |