noreply at rubyforge.org
2009-Dec-14 19:45 UTC
[wxruby-development] [ wxruby-Bugs-27564 ] ScreenDC doesn''t draw text on Ubuntu Karmic
Bugs item #27564, was opened at 2009-12-14 20:45 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=27564&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Marvin G?lker (mguelker) Assigned to: Nobody (None) Summary: ScreenDC doesn''t draw text on Ubuntu Karmic Initial Comment: Hi, The Wx::ScreenDC class can''t draw text on my Ubuntu Karmic machine. I''ve no problem with drawing shapes, but it''s not possible to do that with text. Here''s a small example: ---------------------------- #!/usr/bin/env ruby #Encoding: UTF-8 require "wx" class TestApp < Wx::App include Wx def on_init Timer.every(1000) do sc = ScreenDC.new sc.font = NORMAL_FONT #To ensure there''s a font to draw with sc.draw_rectangle(0, 0, 100, 100) #This gets drawn... sc.draw_text("Test", 0, 150) #...but this doesn''t end end end x = TestApp.new x.main_loop ---------------------------- ruby -v: ruby 1.9.1p376 (2009-12-07 revision 26041) [i686-linux] uname -a: Linux ikarus 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux Btw., I''ve compiled wxRuby myself, because the provided binary gem doesn''t work with Karmic. Marvin ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=27564&group_id=35