File: fonts.rb

package info (click to toggle)
ruby-mojo-magick 0.6.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 376 kB
  • sloc: ruby: 755; makefile: 4
file content (8 lines) | stat: -rw-r--r-- 220 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
module ImageMagick
  class Fonts
    def self.all
      raw_fonts = MojoMagick::Commands.send(:execute, "identify", "-list", "font").return_value
      MojoMagick::Util::FontParser.new(raw_fonts).parse
    end
  end
end