Re: bold in labels?

I think this is easy in gtk2, but hard (as John says) in gtk1.x. Either
wait, or do some nasty hacking :-)

John Sullivan wrote:
> Nautilus has some code to make the font of a GtkLabel bold. The entry point
> is nautilus_gtk_label_make_bold () in
> libnautilus-extensions/nautilus-gtk-extensions.c. It wasn't trivial to make
> this work reliably with the full range of possible fonts, but I think it is
> pretty robust now.
> I don't believe there's any way to use multiple styles (e.g. some bold text,
> some non-bold text) in a single GtkLabel.
> John
> on 3/21/01 9:41 AM, Jeff Shipman at shippy nmt edu wrote:
> > I would like to bold certain keywords in labels,
> > but I have two questions about this:
> >
> > 1) Is it even possible to bold text in labels?
> >
> > 2) If it is, is it possible just to bold certain
> > words, or would I have to do some nasty box
> > packing with special border paddings?
> >
> > Any help would be greatly appreciated. Thanks.
> >

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]