lib/image_magick/fonts.rb in mojo_magick-0.5.6 vs lib/image_magick/fonts.rb in mojo_magick-0.5.7
- old
+ new
@@ -1,13 +1,13 @@
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"
+ 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