Re: gtk2 win32 and default font
- From: "Kiyoshi TAKAHASHI" <takahash isit or jp>
- To: "Jiri Pavlovsky" <jpavlovsky mbox dkm cz>, <gtk-list gnome org>
- Subject: Re: gtk2 win32 and default font
- Date: Wed, 2 Jul 2003 15:01:36 +0900
That's strange because when I use this, the font is not changed and I have
the error message:
"assertion GDK_IS_COLORMAP(colormap) failed".
Up to now, I still wasn't able to change the default font size, in spite of
the numerous solutions proposed :(
Kiyoshi
----- Original Message -----
From: "Jiri Pavlovsky" <jpavlovsky mbox dkm cz>
To: "Rastatter, Ken (OH32)" <Ken Rastatter Honeywell com>;
<gtk-list gnome org>
Sent: Wednesday, July 02, 2003 12:41 AM
Subject: Re: gtk2 win32 and default font
> On Tuesday 01 July 2003 17:25, Rastatter, Ken (OH32) wrote:
> > Jiri Pavlovsky wrote on Thu, 26 Jun 2003:
> > > I'm using gtk+-2.2.1 on win32. I need to change default font.
> >
> > After gtk_init() has been called, I do the following to change the
> > font:
> >
> > gtk_rc_parse_string("gtk-font-name=\"sans 9\" \n");
>
>
> Thanks.
> I found the following to work too:
>
> ---------------------------------
> PangoFontDescription *pdf;
> GtkStyle *style;
> .
> .
> .
>
> style = gtk_style_new();
> pdf = pango_font_description_from_string("Sans 9");
> style->font_desc = pdf;
> gtk_style_attach(style, GDK_WINDOW(window));
>
> --
> Jiri Pavlovsky
> jpavlovsky mbox dkm cz
> tel: (+420) 737196433
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]