I'm having a problem with Pango rendering under a rotated matrix. I'm attempting to draw a label (see code below) which happens inside of an animating Cairo matrix rotation.
As the label rotates, the text jitters, seeming to grow and shrink in weight, becoming thickest at diagonal angles, and thinnest at orthogonal angles. See this comparison:
I'd like the rotated text to generate as if it were just rotating shape paths, and not trying to change the look of the text based on the angle. Any ideas of how I could do this?
Thanks, Sean
//Draw text with Pango
PangoLayout *layout;
PangoFontDescription *desc;
// pCr is the cairomm context ptr.
// pCr->cobj() is the underlying C Cairo context ptr.
pCr->set_source_rgb(0.0, 0.0, 1.0);
layout = pango_cairo_create_layout(pCr->cobj());
// text is the label string
pango_layout_set_text(layout, text.c_str(), -1);
desc = pango_font_description_from_string("Sans Bold 12");
pango_layout_set_font_description(layout, desc);
pango_cairo_layout_path(pCr->cobj(), layout);
pCr->fill();
pango_font_description_free(desc);
g_object_unref(layout);