Re: Pixbufs misplaced in GtkTextView lines ?



On Thu, 2003-10-09 at 11:28, Arnaud Charlet wrote:
> When inserting pixbufs in lines in a GtkTextBuffer/View, the pixbufs appear
> displaced by two pixels from the bottom of the line. Is this intended or a
> bug? If it's intended, is there a way to force a pixmap to start exactly at
> the bottom of the line?
> 
> For an example, see testtext and insert the text sample.
> 

I believe pixbufs are placed on the baseline, lined up with the bottoms
of characters without descenders. So the 2 pixels are your space for y
and g and so forth descenders.

You can move the pixbuf by adjusting the rise (superscript/subscript).

Havoc




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