Skip to content
Prev 3855 / 63421 Next

bug 548 graphics '*' (PR#549)

A little more followup.  The gtk() device uses gdk_string_width to
find the character extents. That seems undocumented anywhere in the
gtk+ sources.  It is returning the maximal descent for the font for all
input strings on my system.  Looking at the current gtk+-1.2.7 sources it
appears to call XTextExtents, and that _should_ give the
string descent.

Since gdk fonts are private opaque structures I see no way around this.
Without any documentation I do not even know if it is a gdk bug (although
I suspect it is or was).  The gdk docs in gtk+ seem seriously incomplete.