Re: Setting fixed-width font

2003-09-26 Thread Havoc Pennington
On Fri, 2003-09-26 at 07:05, Egon Andersen, Talura wrote: > > I have a widget (actually a GtkLabel, but it may be changed later) for > which I want use fixed-width font. > > Is there a simple way to achieve this? Use gtk_widget_modify_font() to set the font to "monospace" Havoc _

Re: Setting fixed-width font

2003-09-26 Thread Sven Neumann
Hi, Peter Krueger <[EMAIL PROTECTED]> writes: > This will completely override the old font attributes. If you only want to > change the font from "Helvetica" or whatever it is to "Fixed" and keep the > other attributes (style and font size) but you don't already know > them, this is a bit more co

Re: Setting fixed-width font

2003-09-26 Thread Peter Krueger
Hi Egon, > I have a widget (actually a GtkLabel, but it may be changed later) for > which I want use fixed-width font. > > Is there a simple way to achieve this? yes it is. You can modify the font of any widget like this: PangoFontDescription *font_desc = pango_font_description_from_string(

Setting fixed-width font

2003-09-26 Thread Egon Andersen
Hi, I have a widget (actually a GtkLabel, but it may be changed later) for which I want use fixed-width font. Is there a simple way to achieve this? (I've looked in the FAQ and mail-archive. But it only described a solution using a resource file, which I don't want to use in this case.) Best

Setting fixed-width font

2003-09-26 Thread Egon Andersen, Talura
Hi, I have a widget (actually a GtkLabel, but it may be changed later) for which I want use fixed-width font. Is there a simple way to achieve this? (I've looked in the FAQ and mail-archive. But it only described a solution using a resource file, which I don't want to use in this case.) Best