[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to use a monospace font in a Gtk::Label?
- From: Chris Dams mi infn it
- To: gtkmm-list gnome org
- Subject: Re: How to use a monospace font in a Gtk::Label?
- Date: Fri, 4 May 2007 19:14:03 +0200 (CEST)
Dear Robert and Jonathon,
Thank you! I had completely overlooked the pango markup language. Now I'm
doing
ostringstream os;
os << "<tt>" << setw(width) << i << "</tt>";
Label *lp = new Label;
lp->set_manage();
lp->set_markup(os.str().c_str());
lp->show();
and that works very well.
Best wishes,
Chris
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]