I've got an inherited project that was made with glade. I've managed to get it compiled against gtk+1.2 after debugging some automake and gettext issues. (It's old code that keeps being adapted for similar purposes.) Unfortunately, I have never used GTK before. The code is in C and being developed on CentOS 6.
When compiled, it's supposed to look something like this (a screenshot of an old version I've managed to dig up):
Instead, it looks like this when I compile it on my system:
Ie, all the buttons, windows, and such are present, but it looks like the fonts have gone super-sized. I'm guessing that this is just an issue of pointing the code toward a better set of fonts, but maybe not. Has anyone encountered this sort of thing before? And if so, does anyone have some ideas about where to start looking on how to fix things?
UPDATE:
So I've found in the XML file where the labels are set. For example, the top-left GUNN On button is defined thusly:
<child>
<widget class="GtkToggleButton" id="gunn2_on_tog">
<property name="can_focus">yes</property>
<property name="label" translatable="yes">GUNN On</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="active">no</property>
<property name="width-request">72</property>
<property name="height-request">24</property>
<property name="visible">yes</property>
<signal name="toggled" handler="on_gunn2_on_tog_toggled" />
</widget>
<packing>
<property name="x">8</property>
<property name="y">16</property>
</packing>
</child>
It seems that I need to do some sort of Pango markup: https://developer.gnome.org/pango/stable/PangoMarkupFormat.html, but I'm still in the process of digging.
UPDATE 2:
I managed to convert the glade file to a version recent enough that the glade installed on the computer would open it. The fonts interface fonts in the glade app look fine. It's not until I compile and run the program that the fonts get out of whack. I've also tried changing my system font preference via the preferences menu to no avail.
UPDATE 3:
I've been able to change the font. Finally. I edited /etc/gtk/gtkrc and added the lines
style "default-text" {
fontset = "-adobe-helvetica-medium-o-normal--10-100-75-75-p-57-iso10646-1,-*-r-*-iso10646-1,*"
}
widget "*" style "default-text"
at the end. It's still not perfect and I don't fully understand it. But progress.