Sha256: 983a81ef72a5c058238c030cf24d21126a6fcbf8fd62b594feacae9173032748
Contents?: true
Size: 474 Bytes
Versions: 9
Compression:
Stored size: 474 Bytes
Contents
module ImageMagick module Fonts def get_fonts @parser ||= MojoMagick::Util::Parser.new raw_fonts = begin self.raw_command('identify', '-list font') rescue Exception => ex puts ex puts "Failed to execute font list with raw_command - trying straight up execute" `convert -list font` end @parser.parse_fonts(raw_fonts) end end end
Version data entries
9 entries across 9 versions & 1 rubygems