Re: gtk2 win32 and default font
- From: Jiri Pavlovsky <ps project-syndicate org>
- To: "Kiyoshi TAKAHASHI" <takahash isit or jp>, <gtk-list gnome org>
- Subject: Re: gtk2 win32 and default font
- Date: Wed, 2 Jul 2003 13:12:34 +0200
> > > > 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));
> > >
> > > 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".
> >
> > I got this mesg too, but the font was changed
> >
I have to withdraw this statement I'm afraid. I'm now on different
box(using linux), but it does not work. Will try later on win32 box.
Jiri
--
Jiri Pavlovsky
ps project-syndicate org
tel: +420221517657
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]