Forum: Ruby-Gnome 2 Text is displayed as squares, not actual characters.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Alexander H. (Guest)
on 2009-01-29 19:49
Attachment: screenshot.png (0 Bytes)
Text is displayed as squares, not actual characters.
Button, Label, et al.

Screenshot attached.
Environment details as follows.

Thoughts?

Thanks

-AH
........................................

ruby -v

ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
........................................

Ruby-Gnome Installation

ruby-gnome2-0.16.0-1-i386-mswin32.exe
C:\Program Files\ruby\lib\GTK
PATH=[...];c:\Program Files\ruby\lib\GTK\bin
........................................

Other GTK Libraries

C:\Program Files\Common Files\GTK\2.0
GTK+ Runtime 2.14.6 rev a
........................................

script.rb

require 'gtk2'

button = Gtk::Button.new("Hello World")
button.signal_connect("clicked") {
  puts "Hello World"
}

window = Gtk::Window.new
window.signal_connect("delete_event") {
  puts "delete event occurred"
  #true
  false
}

window.signal_connect("destroy") {
  puts "destroy event occurred"
  Gtk.main_quit
}

window.border_width = 10
window.add(button)
window.show_all

Gtk.main

........................................

ruby script.rb

c:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
line 27
   Pango-WARNING **:The specified module could not be found.
Failed to load Pango module for id: 'BasicScriptEngineWin32'c:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: line 27
   Pango-WARNING **:The specified module could not be found.
Failed to load Pango module for id: 'BasicScriptEngineWin32'c:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: line 27
   Pango-WARNING **:The specified module could not be found.
Failed to load Pango module for id: 'BasicScriptEngineWin32'c:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: line 27
   Pango-WARNING **:The specified module could not be found.
Failed to load Pango module for id: 'BasicScriptEngineWin32'c:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: line 27
   Pango-WARNING **:The specified module could not be found.
Failed to load Pango module for id: 'BasicScriptEngineWin32'c:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: line 27
   Pango-WARNING **:The specified module could not be found.
Failed to load Pango module for id: 'BasicScriptEngineWin32'c:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: line 27
   Pango-WARNING **:The specified module could not be found.
Failed to load Pango module for id: 'BasicScriptEngineWin32'c:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: line 27
   Pango-WARNING **:The specified module could not be found.
Failed to load Pango module for id: 'BasicScriptEngineWin32'c:/Program
Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: line 27
   Pango-WARNING **:pango_shape called with bad font, expect ugly output
c:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
line 27
   Pango-WARNING **:pango_font_get_glyph_extents called with bad font,
expect ugly output
c:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
line 27
   Pango-WARNING **:pango_font_get_font_map called with bad font, expect
ugly output
c:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
line 27
   Pango-CRITICAL **:_pango_cairo_font_map_get_renderer: assertion
`PANGO_IS_CAIRO_FONT_MAP (fontmap)' failed
c:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
line 27
   Pango-WARNING **:_pango_cairo_font_install called with bad font,
expect ugly output
c:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
line 27
   Pango-CRITICAL **:_pango_cairo_font_map_get_renderer: assertion
`PANGO_IS_CAIRO_FONT_MAP (fontmap)' failed
c:/Program Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
line 27
   Pango-CRITICAL **:_pango_cairo_font_map_get_renderer: assertion
`PANGO_IS_CAIRO_FONT_MAP (fontmap)' failed
This topic is locked and can not be replied to.