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
_
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
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(
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
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