Re: Pango help

On 4/10/06, nerdy <nerds_ebook1 yahoo com> 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:


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