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

Behdad Esfahbod behdad at behdad.org
Tue Apr 15 15:44:23 PDT 2008


On Tue, 2008-04-15 at 18:42 -0400, robertk54 at aol.com wrote:
> >> I assumed that to handle right-to-left (i.e. Hebrew) or vertical 
> (i.e.
> >> Chinese) fonts I would need to adjust the gravity attribute (and
> >> possibly rotate the text?) but this does not seem to work.
> 
> >For right-to-left text, no, you don't need to mess with gravity.  
> That's
> >just for vertical.
> 
> Yes, thanks.  My statement was not correct but my understanding was.
> 
> Will attempting to use such vertical text (font like Chinese which is 
> intended to be rendered vertically) work on Windows using just 
> Cairo+Pango?  Or, will I need to use FreeType builds of these?

You need the FreeType backend right now.  Having said that, I may be
able to fix it in Pango.  Will give it a try.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759



More information about the cairo mailing list