Sha256: 1daf6b95e657d7d718a3b609189cde2f4401412b20fe84cad9a6e52db5eb5501
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mojo_magick-0.5.7 | lib/image_magick/fonts.rb |