Questions about rotated text

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);

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]