Questions about rotated text
- From: "Yahya Mohammad" <mfyahya gmail com>
- To: gtk-i18n-list gnome org
- Subject: Questions about rotated text
- Date: Tue, 11 Sep 2007 14:26:02 +0400
Hi list,
I'm trying to render rotated text with the freetype2 functions, and
there are a few things I don't understand. I rotated the layout using
pango_matrix_rotate(matrix, angle);
pango_context_set_matrix(context, matrix);
pango_layout_context_changed(layout)
Is the rotation done about the top left corner of the layout or is it
the left edge of the baseline?
Later in my code, I call pango_layout_get_extents(layout, NULL,
&logical_rect). Now when I look at logical_rect the height changes for
different angles (minimum for 180), and width stays the same.
Shouldn't the height also be fixed regardless of the rotation?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]