Re: Pixbufs misplaced in GtkTextView lines ?
- From: Havoc Pennington <hp redhat com>
- To: Arnaud Charlet <charlet ACT-Europe FR>
- Cc: gtk-devel-list gnome org
- Subject: Re: Pixbufs misplaced in GtkTextView lines ?
- Date: Thu, 09 Oct 2003 14:31:49 -0400
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]