Sha256: 0767b89ed95eba236af44df50e30a1cd73c42c7c729af6c52e5eeeec17eac785
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
require File.join(File.dirname(__FILE__), 'test_helper') IDENTIFY_FONT_RESPONSE = <<~EOF.freeze Font: Zapf-Dingbats family: Zapf Dingbats style: Normal stretch: Normal weight: 400 glyphs: /System/Library/Fonts/ZapfDingbats.ttf Font: Zapfino family: Zapfino style: Italic stretch: Normal weight: 400 glyphs: /Library/Fonts/Zapfino.ttf EOF class FontTest < MiniTest::Test def test_font f = MojoMagick::Font.new assert_nil f.name assert_equal f.valid?, false f = MojoMagick::Font.new(name: 'Zapfino', weight: 400) assert_equal f.name, 'Zapfino' assert_equal f.valid?, true assert_equal f.weight, 400 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mojo_magick-0.5.7 | test/font_test.rb |