Included Modules

Class/Module Index [+]

Quicksearch

TestLayout

Public Instance Methods

setup() click to toggle source
# File pango/test/test_layout.rb, line 4
def setup
  @context = Pango::Context.new
  @layout = Pango::Layout.new(@context)
end
test_set_font_description() click to toggle source
# File pango/test/test_layout.rb, line 9
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.