On 4/10/06, nerdy <[EMAIL PROTECTED]> wrote:
> In the following code segment, I am displaying a text at a position (50,50)
> in a drawing area. For a font size of 24 and family=courier, i am NOT
> gettting the message displayed at the exact position (50,50). The starting
> of the text is displaced by some pixels from position 50,50.

You need to take account of the baseline, ascent and descent of the
font. You probably need pango_layout_get_pixel_extents(), see:

http://developer.gnome.org/doc/API/2.0/pango/pango-Layout-Objects.html#pango-layout-get-pixel-extents

John
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to