On Wed, 2014-06-04 at 13:57 +0100, Drupal wrote: > 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?
Hello, it is possible, only note that PoDoFo doesn't render anything, it only writes rendering instructions to a PDF file, which a reader (Adobe/evince/......) interprets. I cannot give you exact code, I do not have it handy, but I can provide a rough overview (maybe it'll not be accurate): - attach your (newly created?) font to the PDF; - create a mapping between 'char' codes to glyph IDs, which can be done with a PdfEncoding descendant (there can be sometimes involved PdfEncodingDifference, but it sounds like it's not what you want); - then create a PdfFont with that PdfEncoding descendant used (the GetFont() variants have the PdfEncoding * argument); - then print the letters according to your mapping. The hardest part will be to describe the font properly, with its 'letter' widths and so on, but I think the freetype can read that from the font description and PoDoFo can use that information for you. Hope it helps, zyx P.S.: As you target Windows, it would be interesting to know whether litePDF can handle it for you. I'm just being curious. :) -- http://www.litePDF.cz i...@litepdf.cz ------------------------------------------------------------------------------ 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