[Gtk-sharp-list] Changing default widget font to avoid ugly warning under windows.

Anset anset@anset.org
Thu, 26 Aug 2004 14:31:02 +0200


When I run my gtk# program under windows, I get the following warning in a
dos window:

** (<unknown>:2040): WARNING **: Couldn't load font "MS Shell Dlg 8" falling
back to "Sans 8"
(this warning appears once for each widget that draws text.)

So now I am looking for a way to solve this.
>From my research, I found that Pango is responsable for the font work and I
have found how I can change the font for a widget using the FontDescription
class, the Pango markups, etc...

However, what I would like to do is change the default font so that all the
widgets that are created when the glade XML file is read, use for example
Sans 8 instead of that Shell font. That should solve my problem I think.
Does anyone know how to do this?

I also know about the pango.aliases file, but that won't solve the ugly
warnings either...(afaik)

Any help is greatly appreciated.