On Tue, 2003-03-04 at 10:46, Mattias Dahlberg wrote:
> On 4 Mar 2003, Brent Fox wrote:
>
> > > http://users.du.se/~mda/phoebe-config-fonts.jpg
> > >
> > > Perhaps anti-aliasing could "hide" this difference, but it would make me
> > > very happy if it looked good even with anti-aliasing turned off.
> >
> > Hmmm, I see what you mean. Strange.
> >
> > Maybe it has something to do with your locale? When I try this on my
> > test machine using en_US as the locale, both gnome-mouse-properties and
> > redhat-config-network pick up the font change.
>
> I tried switching to en_US, but still the same thing. Have you tried with
> anti-aliasing turned off and the bytecode interpreter enabled in freetype?
I tried it with anti-aliasing turned off, but I didn't change freetype.
Still works the same in both apps on my machine.
>
> The font used is Verdana, which is a truetype font that scales beautifully
> in all applications except the redhat-config-* ones. The same is true for
> all truetype fonts.
I don't see Verdana in the default font list. Maybe I don't have it
installed.
> Somehow the truetype font gets distorted. Maybe it has to do with how
> PyGTK handles fonts? It picks up the font, but displays it wrongly. How do
> you tell Python/PyGTK to output the text? Do you specify a certain text
> size or anything?
It is possible to use Pango to specify certain fonts in pygtk, but in
general we avoid that. So most the labels are declared something like:
label = gtk.Label("This is the label text.")
And then you just pack the label into a layout container to display it
like:
hbox = gtk.HBox()
hbox.pack_start(label)
So the config tools aren't doing anything special to change the font. I
don't know what the problem could be. Owen might know, so I'm cc'ing
him.
Cheers,
Brent
--
Phoebe-list mailing list
Phoebe-list@redhat.com
https://listman.redhat.com/mailman/listinfo/phoebe-list
[Home] [Kernel List] [Red Hat Install] [Red Hat Watch List] [DVD Store] [Red Hat Development] [Gimp] [Yosemite News]