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

Kalle Vahlman kalle.vahlman at gmail.com
Fri Apr 11 10:35:20 PDT 2008


2008/4/11, robertk54 at aol.com <robertk54 at aol.com>:
>       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.

-- 
Kalle Vahlman, zuh at iki.fi
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi


More information about the cairo mailing list