Sha256: ecfc8508c2b4ee2972bdb18ccb589fe618c39265e6f5f172cb6c74bde101b478

Contents?: true

Size: 552 Bytes

Versions: 66

Compression:

Stored size: 552 Bytes

Contents

class TestLayout < Test::Unit::TestCase
  include PangoTestUtils

  def setup
    @context = Pango::Context.new
    @layout = Pango::Layout.new(@context)
  end

  def test_set_font_description
    assert_nil(@layout.font_description)

    @layout.font_description = "sans 14"
    assert_equal("sans 14", @layout.font_description.to_s)

    description = Pango::FontDescription.new("monospace")
    description.size = 10 * Pango::SCALE
    @layout.font_description = description
    assert_equal("monospace 10", @layout.font_description.to_s)
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
pango-2.0.2-x86-mingw32 test/test_layout.rb
pango-2.0.2 test/test_layout.rb
pango-2.0.1-x86-mingw32 test/test_layout.rb
pango-2.0.1 test/test_layout.rb
pango-2.0.0-x86-mingw32 test/test_layout.rb
pango-2.0.0 test/test_layout.rb
pango-1.2.6-x86-mingw32 test/test_layout.rb
pango-1.2.6 test/test_layout.rb
pango-1.2.5-x86-mingw32 test/test_layout.rb
pango-1.2.5 test/test_layout.rb
pango-1.2.4-x86-mingw32 test/test_layout.rb
pango-1.2.4 test/test_layout.rb
pango-1.2.3 test/test_layout.rb
pango-1.2.3-x86-mingw32 test/test_layout.rb
pango-1.2.2-x86-mingw32 test/test_layout.rb
pango-1.2.2 test/test_layout.rb
pango-1.2.1-x86-mingw32 test/test_layout.rb
pango-1.2.1 test/test_layout.rb
pango-1.2.0-x86-mingw32 test/test_layout.rb
pango-1.2.0 test/test_layout.rb