Re: How to use a monospace font in a Gtk::Label?



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]