class MojoMagick::Font

Attributes

family[RW]
glyphs[RW]
name[RW]
stretch[RW]
style[RW]
weight[RW]

Public Class Methods

all() click to toggle source
# File lib/mojo_magick/font.rb, line 16
def self.all
  ImageMagick::Fonts.all
end
new(property_hash = {}) click to toggle source
# File lib/mojo_magick/font.rb, line 9
def initialize(property_hash = {})
  %i[name family style stretch weight glyphs].each do |f|
    setter = "#{f}="
    send(setter, property_hash[f])
  end
end

Public Instance Methods

valid?() click to toggle source
# File lib/mojo_magick/font.rb, line 5
def valid?
  !name.nil?
end