Display question mark in my app

i follow the steps described in this
site(http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips_rubyscript2exe) to
create my standalone ruby app with gtk2.
and this exe file does run well except all the characters display in
question mark . i got these error messages:

D:\My Documents\My work\Ruby\factory>main.exe >>1.log
C:/DOCUME~1/thom/eee/eee.main.exe.4/lib/rubygems/custom_require.rb: line
32
Pango-WARNING **:No builtin or dynamically
loaded modules were found. Pango will not work correctly.
This probably means there was an error in the creation of:
‘C:\DOCUME~1\thom\eee\eee.main.exe.4\etc\pango\pango.modules’
You should create this file by running pango-querymodules.
C:/DOCUME~1/thom/eee/eee.main.exe.4/lib/rubygems/custom_require.rb: line
32
Pango-WARNING **:pango_shape called with bad font, expect ugly output
C:/DOCUME~1/thom/eee/eee.main.exe.4/lib/rubygems/custom_require.rb: line
32
Pango-WARNING **:pango_font_get_glyph_extents called with null font
argument,
expect ugly output
C:/DOCUME~1/thom/eee/eee.main.exe.4/lib/rubygems/custom_require.rb: line
32
Pango-WARNING **:pango_font_get_metrics called with null font
argument, expec
t ugly output
C:/DOCUME~1/thom/eee/eee.main.exe.4/lib/rubygems/custom_require.rb: line
32
Pango-WARNING **:_pango_cairo_font_install called with bad font,
expect ugly
output

i don’t know what’s the problem about it. i can run my app using command
“ruby myapp.rb”, and everything is ok.
thanks for your help !

Hi,

You need to call the 3 programs below before starting GTK2 application.

GTK\bin\pango-querymodules.exe > …\etc\pango\pango.modules
GTK\bin\gdk-pixbuf-query-loaders.exe > …\etc\gtk-2.0\gdk-pixbuf.loaders
GTK\bin\gtk-query-immodules-2.0.exe > …\etc\gtk-2.0\gtk.immodules

Your error say the pango.modules have’t been created yet.

HTH,

On Fri, 8 Jun 2007 08:52:03 +0200
Thomas W. [email protected] wrote:

loaded modules were found. Pango will not work correctly.
expect ugly output

control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


ruby-gnome2-devel-en mailing list
[email protected]
ruby-gnome2-devel-en List Signup and Options


This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/