search for: gdk_string_extents

Displaying 2 results from an estimated 2 matches for "gdk_string_extents".

2000 May 22
0
RE:bug 548 graphics '*' (PR#549)
...documentation is > that it is getting better. Documentation on glib, gdk and gtk+ is > available from here: > > http://developer.gnome.org/doc/API/ > > but 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_st...
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