[cairo] complex text rendering/layout

Behdad Esfahbod behdad at behdad.org
Tue Jul 24 10:06:19 PDT 2007


On Mon, 2007-07-23 at 13:04 -0400, satish kambala wrote:
> Hi,
> 
> I am trying to use cairo library for rendering images (including text)
> in 'Hindi' language (Indian language). Hindi lanugauge 
> follows devanagari script. I am using free type unicode font file
> (arialuni.ttf ) for doing this. I observed that some characters are
> not
> rendered properly. In the following image, I should get the right side
> image where as I get the left side image.
> 
> Image:Example.of.complex.text.rendering.svg
> 
> After a bit of reading came to know that rendering libraries should
> support complex script rendering to take care of these cases.
> (http://en.wikipedia.org/wiki/Wikipedia:Enabling_complex_text_support_for_Indic_scripts)
> 
> I would like to know if cairo supports this, if so do I have to do
> anything to enable this. Also will using some other font file other 
> than arial unicode file helps?
> 
> If cairo doesn't support this, is there any other hack (like using
> some patches or plugins) to accomplish this?

Cairo doesn't support this.  You should use pango+cairo.  That is not a
hack though, it's a proper solution.

> Please let me know if I made any wrong assumptions. Thanks in
> advance. 
> 
> Thanks,
> Satish
-- 
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