Re: [gtkextra] No text is drawn

[email protected] Wed, 3 Aug 2005 10:03:23 -0300
Newsgroups gmane.comp.gnome.gtk+.general,gmane.comp.scigraphica.gtkextra
Message-ID <20050803130323.GA22939@malaquias>
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: <[email protected]>
[...]
> >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?