Re: [g-i] fonts: a few thoughts
Hidetaka Iwai wrote:
Frans Pop <firstname.lastname@example.org> wrote:
Message-ID: <[🔎] email@example.com>
On Tuesday 06 December 2005 14:52, Attilio Fiandrotti wrote:
ok, let's suppose we can setup a correct gtkrc file every time we need
it: then the GTK frontend will have to read /etc/gtkrc at every
frontend_go() call and so we must be sure this wouldn't be cause of
Could we not trigger (force) a re-read externally somehow?
That is exactly what the sample program written in Muto-san's previous
To test if gtkrc reloading code i did the following
event.type = GDK_CLIENT_EVENT;
event.send_event = TRUE;
event.window = NULL;
event.message_type = gdk_atom_intern("_GTK_READ_RCFILES", FALSE);
event.data_format = 8;
while (gtk_events_pending ()) gtk_main_iteration ();
into the body of gtk_go() function, so that theme reloading is forced at
every question that is displayed (no performance degradation detected at
I then recompiled gtk.so  and rebuilt the miniiso from where i
removed freefonts and unfonts fonts.
-I then made the instaler boot and typed in VT2
echo 'gtk-font-name = "Sazanami Gothic 14"' > /etc/gtkrc-2.0/gtkrc
and i tested Japanese  and Korean  languages
-I then did
echo 'gtk-font-name = "UnDotum 14"' > /etc/gtkrc-2.0/gtkrc
and i tested Japanese  and Korean  languages again
(Note that i only switched between VTs and never had to kill the
frontend to make it display new fonts).
 and  are identical, while i can see some diffecent characters
from  to  inthe top-left part of the screen.
It seems to me that the new part of code effectively reloads the gtkrc
preferences file: new fonts seem to be used as specified into gtkrc but
only if freefonts and unfonts are removed, else freesans is still used
as default font, no matter what i specify into gtkrc.