[cairo] New to Cairo: advice on creating PDFs with Arabic text (via input from libotf or SIL graphite2)
mpsuzuki at hiroshima-u.ac.jp
Fri May 3 05:56:23 PDT 2013
The author of libotf maintains (maintained?) yet another
shaping engine, m17n, and provided a small sample extending
cairo to take UTF-8 string and render it via m17n.
Unfortunately, his domain, www.m17n.org is no longer owned
by him, so please check archive.
Dov Grobgeld wrote (2013/05/03 21:44):
> 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:
> Using cairo with pango is pretty trivial and I see no reason to bother with
> other libraries.
> On Fri, May 3, 2013 at 12:08 PM, Graham Douglas <
> graham.douglas at readytext.co.uk> wrote:
>> Dear List
>> I'm new to Cairo and have just compiled Cairo 1.12.14 as a static
>> library under 64-bit Windows 7. I'm interested to create PDFs containing
>> Arabic text using the output of either libotf or SIL's graphite engine
>> to provide glyph IDs and positioning information. I know that there is a
>> library called Pango for advanced text layout but, at least initially,
>> I'd prefer to work with libotf/graphite. I'm also not using harfbuzz or
>> anything as advanced as that (e.g., for bidi-work) having written my own
>> fairly basic Arabic-shaping "engine". Just to note that this is purely a
>> hobby project and probably something I'll write-up on my blog -- of
>> course I'll thank/mention any advice or help received here.
>> Would anyone be able to share a small snippet of C code, or point me to
>> an example, showing how I can get started with the appropriate Cairo
>> API to generate PDFs containing Arabic text, assuming that all glyph and
>> positioning information is available to provide to Cairo's API calls?
>> With thanks in advance
>> Best wishes
>> Graham Douglas
>> cairo mailing list
>> cairo at cairographics.org
More information about the cairo