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

Version Path
mojo_magick-0.5.6 lib/image_magick/fonts.rb
mojo_magick-0.5.5 lib/image_magick/fonts.rb
mojo_magick-0.5.4 lib/image_magick/fonts.rb
mojo_magick-0.5.3 lib/image_magick/fonts.rb
mojo_magick-0.5.2 lib/image_magick/fonts.rb
mojo_magick-0.5.1 lib/image_magick/fonts.rb
mojo_magick-0.4.8 lib/image_magick/fonts.rb
mojo_magick-0.4.7 lib/image_magick/fonts.rb
mojo_magick-0.4.6 lib/image_magick/fonts.rb