Sha256: ebac85a54f5b09244c69fab96998da96fdc3583052a5f0c9ce3a2eef3e89951f

Contents?: true

Size: 701 Bytes

Versions: 6

Compression:

Stored size: 701 Bytes

Contents

require File::join(File::dirname(__FILE__), 'test_helper')

IDENTIFY_FONT_RESPONSE =<<EOF
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 < Test::Unit::TestCase

  def test_font
    f = MojoMagick::Font.new
    assert_equal f.name, nil
    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

6 entries across 6 versions & 1 rubygems

Version Path
mojo_magick-0.5.2 test/font_test.rb
mojo_magick-0.5.1 test/font_test.rb
mojo_magick-0.4.8 test/font_test.rb
mojo_magick-0.4.7 test/font_test.rb
mojo_magick-0.4.6 test/font_test.rb
mojo_magick-0.4.5 test/font_test.rb