Sha256: 135d2c6f1b89163a3f3ac1a12f808baad0a01cd519879c5128aa7a595edddd87
Contents?: true
Size: 395 Bytes
Versions: 2
Compression:
Stored size: 395 Bytes
Contents
module ImageMagick module Fonts def get_fonts @parser ||= MojoMagick::Util::Parser.new raw_fonts = begin raw_command("identify", "-list font") rescue Exception => e puts e 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mojo_magick-0.6.2 | lib/image_magick/fonts.rb |
mojo_magick-0.6.0 | lib/image_magick/fonts.rb |