Re: Huge widget sizes exceeding screen width or height



On 9/27/05, Nate Case <nacase gmail com> wrote:
> Update: I made a simple test case with an app that just contains a
> GtkEntry widget which exhibits this problem.  I rebuilt gtk+ with some
> debug print statements and determined that in gtk_entry_size_request()
> it was setting a height of 4115.
>
> It gets 4115 because pango_font_metrics_get_descent() is returning
> 4194304!  I'm not too familiar with pango, but this would appear to be
> a much larger than normal value.

I did eventually solve this in case anyone is interested.

Turned out it was trying to use some fonts in
/usr/share/fonts/mentor-fonts -- the mentor fonts were added manually
some time ago so I could use Mentor Graphics remotely on Solaris
machines.  I don't know why pango/fontconfig/gtk/whatever was trying
to use it, or why pango read the font descents (and height) to be so
large, but moving them out of /usr/share/fonts solved the issue for
me.

- Nate Case



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