Bugs: Browse | Submit New | Admin

[#27564] ScreenDC doesn't draw text on Ubuntu Karmic

Date:
2009-12-14 19:45
Priority:
3
Submitted By:
Marvin Gülker (mguelker)
Assigned To:
Nobody (None)
Category:
Incorrect behavior
State:
Open
Summary:
ScreenDC doesn't draw text on Ubuntu Karmic

Detailed description
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

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item