Re: how to draw a label with a specific font?



Igor Jovanovic wrote:
On Tue, 2005-01-25 at 22:03 +0100, Akos Maroy wrote:

Hi,

I'd like to draw Gtk::Label objects with a specific font (Bitstream Vera). How would I achieve this? I can't find any aspect in the Gtk::Label documentation on how I'd change the font...


It's easy as:

label->modify_font(Pango::FontDescription("Bitstream Vera 10"));

thanks, it really was easy :)




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