Re: gdk_draw_text and offsets
- From: Owen Taylor <otaylor redhat com>
- To: Paul Barton-Davis <pbd op net>
- Cc: gtk-list gnome org
- Subject: Re: gdk_draw_text and offsets
- Date: 24 Dec 2000 10:34:08 -0500
Paul Barton-Davis <pbd op net> writes:
> here is some code:
>
> gdk_draw_text (area_widget->window,
> area_widget->style->font,
> area_widget->style->text_gc[GTK_STATE_NORMAL],
> 10, 10,
> label,
> label_len);
>
> can anyone explain to me what set of circumstances can lead to this
> drawing the text at some position that is *not* (10,10) in the window
> provided ? this is happening to me on a regular basis, and i simply
> have no idea how it can happen.
Absolutely no circumstances. Are you sure you are accounting for
the fact that y=10 is the position of the baseline, not the top
of the text?
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]