<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Here is an example that I wrote in vala a few years back that renders a UTF-8 text file into multiple png files through vala and pango:<br>
<br><a href="https://live.gnome.org/Vala/PangoCairoSample">https://live.gnome.org/Vala/PangoCairoSample</a><br><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Using cairo with pango is pretty trivial and I see no reason to bother with other libraries.<br>
<br></div>Regards,<br><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Dov<br><br></div><div style id="divCleekiAttrib"></div><div style id="divCleekiAttrib"></div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Fri, May 3, 2013 at 12:08 PM, Graham Douglas <span dir="ltr"><<a href="mailto:graham.douglas@readytext.co.uk" target="_blank">graham.douglas@readytext.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear List<br>
<br>
I'm new to Cairo and have just compiled Cairo 1.12.14 as a static<br>
library under 64-bit Windows 7. I'm interested to create PDFs containing<br>
Arabic text using the output of either libotf or SIL's graphite engine<br>
to provide glyph IDs and positioning information. I know that there is a<br>
library called Pango for advanced text layout but, at least initially,<br>
I'd prefer to work with libotf/graphite. I'm also not using harfbuzz or<br>
anything as advanced as that (e.g., for bidi-work) having written my own<br>
fairly basic Arabic-shaping "engine". Just to note that this is purely a<br>
hobby project and probably something I'll write-up on my blog -- of<br>
course I'll thank/mention any advice or help received here.<br>
<br>
Would anyone be able to share a small snippet of C code, or point me to<br>
an example, showing how I can get started with the appropriate Cairo<br>
API to generate PDFs containing Arabic text, assuming that all glyph and<br>
positioning information is available to provide to Cairo's API calls?<br>
<br>
With thanks in advance<br>
<br>
Best wishes<br>
<span class="HOEnZb"><font color="#888888"><br>
Graham Douglas<br>
<a href="http://readytext.co.uk" target="_blank">http://readytext.co.uk</a><br>
<br>
<br>
--<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br>
</font></span></blockquote></div><br></div>