RE: [gtkextra] No text is drawn



> -----Original Message-----
> From: scigraphica-gtkextra-admin lists sourceforge net
> [mailto:scigraphica-gtkextra-admin lists sourceforge net]On Behalf Of
> romildo uber com br
> Sent: Wednesday, August 03, 2005 9:03 AM
> To: scigraphica-gtkextra lists sourceforge net; gtk-list gnome org
> Subject: Re: [gtkextra] No text is drawn
>
>
> On Wed, Aug 03, 2005 at 02:49:28PM +0200, Christoph Finke wrote:
> > I had the same Problem,
> > its a bug in gtkextra/gtkfontps.c (or perhaps deeper in the
> pango-library)
> >
> > Line 467
> >  if (!g_object_class_find_property(klass, "gtk-xft-dpi")) {
> >    dpi = 96.;
> >  } else {
> >    /* Read the settings. */
> >    gint int_dpi;
> >    g_object_get(G_OBJECT(settings),
> >             "gtk-xft-dpi", &int_dpi,
> >         NULL);
> >    dpi = int_dpi / PANGO_SCALE;
> >  }
> >
> > g_object_get returns 0.
> >
> > I have put the following line in ~/.gtkrc-2.0 (outside of  any
> style block):
> > gtk-xft-dpi=100000
> > which solved the Problem.
>
> That trick works for me too, thanks.
>
> Are the authors of gtk+extra and pango aware of
> the bug?
>
> Romildo
>
> > ----- Original Message -----
> > From: <romildo uber com br>
> [...]
> > >I still does not understand why those test programs
> > >from gtk+extra do use such a very small font size.
> > >What else can I do to get it right?
>
>

THanks for the info, I'll try this today.

I also don't undestand why gtkextra only exibits the problem when using the
pango library and not when using the pre-pango font functions (gdk_font,
etc.).

> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Scigraphica-gtkextra mailing list
> Scigraphica-gtkextra lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/scigraphica-gtkextra




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]