lib/mojo_magick/font.rb in mojo_magick-0.6.2 vs lib/mojo_magick/font.rb in mojo_magick-0.6.3
- old
+ new
@@ -5,17 +5,16 @@
def valid?
!name.nil?
end
def initialize(property_hash = {})
- property_hash.symbolize_keys!
%i[name family style stretch weight glyphs].each do |f|
setter = "#{f}="
send(setter, property_hash[f])
end
end
def self.all
- ImageMagick::Font.all.map { |font_info| Font.new(font_info) }
+ ImageMagick::Fonts.all
end
end
end