If you get a list of glyph Ids and their positions on the line - then you
should be good to go.  Just keep a list of the Ids and their new order (in
the subset) and then use that mapping table to determine what GID to
actually put in the PDF stream.

Leonard

On 6/6/14, 6:21 AM, "Drupal" <dru...@readytext.co.uk> wrote:

>Hi Leonard
>
>Many thanks for your e-mail.  In the past I used my own Arabic shaping
>engine but these days I use Harfbuzz for the Arabic shaping.
>I was just curious to know if PoDoFo could be another route to generate
>PDFs containing fully-shaped Arabic --- I use a TeX-based engine at the
>moment (LuaTeX).
>
>I've been reading Chapter 5 of the Adobe PDF spec, trying to better
>understand Type2 CID fonts since I use an open source OpenType
>(TrueType) font called Scheherazade:
>
>http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=Scheherazade
>
>I have Acrobat Professional 10 and have been using its absolutely
>excellent font-inspection and PDF structure examination tools to study
>PDFs with embedded/subset Type 2 CIDfonts (PDFs produced by LuaTeX). I
>think I understand, in principle, what I need to achieve but actually
>getting there via PoDoFo is going to take much more reading --- to
>understand how to use it to use/access glyphs that do not have Unicode
>character encodings. Harfbuzz, of course, returns a set of glyph IDs for
>the fully-shaped Arabic -- or of course any other language --- Harfbuzz
>is a full OpenType shaping engine along the lines of Windows' Uniscribe.
>
>With all best wishes.
>
>Kind regards
>Graham
>
>
>
> 
>
>On 06/06/2014 02:10, Leonard Rosenthol wrote:
>> As you discovered, you will need to provide your own Arabic shaper (and
>> glyph selection module).
>>
>> Leonard
>>
>> On 6/4/14, 8:57 AM, "Drupal" <dru...@readytext.co.uk> wrote:
>>
>>> Dear All
>>>
>>> Firstly, my sincere thanks to the team behind PoDoFo for making this
>>> software freely available.
>>>
>>> Just to summarize my setup, I've just compiled PoDoFo 0.9.2 on Windows
>>>7
>>> 64 bit (using Visual Studio 2008...!) with the following libraries
>>>
>>> Boost 1.55
>>> libjpeg 8d
>>> openssl 1.01g
>>> libtiff 4.0.3
>>> libzlib 1.2.8
>>> FreeType 2.5.3
>>>
>>> So far, most of the PoDoF test applications build/work fine --- apart
>> >from FilterTest where I get 3 failures (I've yet to find out why).
>>> Anyway that's a different issue for now.
>>>
>>> What I'm really interested to explore is using PoDoFo for outputting
>>> typeset Arabic --- via the superb Harfbuzz OpenType shaping engine. I
>>> have Harfbuzz working well and can generate shaped Arabic text. The
>>> output of Harfbuzz (and FreeType) is a set of glyphs IDs together with
>>> full positioning and glyph/metric data. With Arabic, many of the glyphs
>>> may not have a corresponding Unicode character value --- i.e., they are
>>> "visual forms" and not encoded in Unicode. I use OpenType fonts
>>> exclusively.
>>>
>>> So, I guess my question is: Can PoDoFo take a set of glyph IDs and
>>> positions/metrics and use that to render Arabic in a PDF with a subset
>>> font?
>>>
>>> I must confess that I'm not at all a strong C++ programmer, I mostly
>>> code in C, so any suggestions on where to start with PoDoFo to output
>>> Arabic (based on the above) would be very helpful --- or if it is not
>>> possible that would be good to know.
>>>
>>> Best wishes to all and thanks again for PoDoFo.
>>>
>>> Graham
>>>
>>>
>>>
>>>
>>>
>>>
>>> 
>>>------------------------------------------------------------------------
>>>--
>>> ----
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their 
>>> applications. Written by three acclaimed leaders in the field,
>>> this first edition is now available. Download your free book today!
>>> http://p.sf.net/sfu/NeoTech
>>> _______________________________________________
>>> Podofo-users mailing list
>>> Podofo-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/podofo-users
>>
>


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to