Re: Gtk::Label change font
- From: "Diego A. Fons" <diegofons apexar com ar>
- To: Naveen Verma <ernaveenverma gmail com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Gtk::Label change font
- Date: Fri, 06 Jul 2007 12:21:56 -0300
Naveen Verma wrote:
Hi,
I have to display a lebel with particular font face, color and
size, but
i can't get it.
I've tried with set_attributes(), modify_font() and
get_pango_layout(),
are these methods the correct ones?
What must i do to change the font of the label?
Well I have used by taking an object of Pengo::FontDescription, set
the details and the attach it with all the labels as:
Gtk::Label lbl("Example");
Pango::FontDescription fdsc("Arial");
fdsc.set_size(15000);
lbl.modify_font(fdsc);
Hope same can work for you also.
Regards,
Diego A. Fons.
-Br
Naveen
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org <mailto:gtkmm-list gnome org>
http://mail.gnome.org/mailman/listinfo/gtkmm-list
Ah!
Thank you very much that was the key ;)
By the way, don't you know what i've to do to hide the mouse cursor? i'm
developing an application which uses touchscreen and the cursor bothers
me...
Regards,
Diego A. Fons.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]