# Display question mark in my app

**URL:** <https://www.ruby-forum.com/t/display-question-mark-in-my-app/106300>\
**Category:** Ruby-Gnome 2\
**Created:** [June 8, 2007, 8:52am UTC](https://www.ruby-forum.com/t/display-question-mark-in-my-app/106300 "2007-06-08T08:52:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/848f3c/32.png) [@wet](https://www.ruby-forum.com/u/wet)\
**Post date:** [June 8, 2007, 8:52am UTC](https://www.ruby-forum.com/t/display-question-mark-in-my-app/106300/1 "2007-06-08T08:52:03Z")

</div>

i follow the steps described in this  
site([http://ruby-gnome2.sourceforge.jp/hiki.cgi?tips\_rubyscript2exe](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 !

---

<div class="post-metadata">

**Author:** ![wet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/848f3c/32.png) [@wet](https://www.ruby-forum.com/u/wet)\
**Post date:** [June 15, 2007, 6:12pm UTC](https://www.ruby-forum.com/t/display-question-mark-in-my-app/106300/2 "2007-06-15T18:12:28Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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/](http://sourceforge.net/powerbar/db2/)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> removed\_email\_address@domain.invalid  
> [ruby-gnome2-devel-en List Signup and Options](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

* * *

This [SF.net](http://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/](http://sourceforge.net/powerbar/db2/)
