[cairo] Using Pango+Cairo to layout non-standard / international text

robertk54 at aol.com robertk54 at aol.com
Fri Apr 11 15:25:02 PDT 2008


>       cairo_rotate (m_pCairo, rotation);
>       // Get the layout's current context
>       pPangoContext = pango_layout_get_context (m_pPangoLayout);
>       // Try to implement vertical text using context gravity
>       pango_context_set_base_gravity (pPangoContext, gravity);
>        pango_context_set_gravity_hint (pPangoContext,
>  PANGO_GRAVITY_HINT_STRONG);
>       // Let the pango layout know of the context changes above.
>       pango_layout_context_changed (m_pPangoLayout);

>I think this should rather be pango_cairo_update_layout() to also tell
>the transformation to the layout, not just the new options. Now it
>just rotates the drawing commands, not the layout logic.

Added the call to pango_cairo_update_layout() in various points above 
but had no observable affect.


More information about the cairo mailing list