Displaying 2 results from an estimated 2 matches for "lbear".
Did you mean:
bear
2000 May 22
0
RE:bug 548 graphics '*' (PR#549)
...t is still quite sparse.
>
> This is not, in fact, a gdk bug, but is due to a permutation in
> the arguments of gdk_string_extents in GTK_MetricInfo
> (file src/gnome/devGTK.c). It currently reads
>
> gdk_string_extents(gtkd->font, tmp,
> &lbearing, &rbearing,
> &iascent, &idescent, &iwidth);
>
> but should be
>
> gdk_string_extents(gtkd->font, tmp,
> &lbearing, &rbearing,
> &iwidth, &iascent, &idescent);
&...
2000 May 22
1
RE: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