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