sillsdev/grind

PDF Export does no look correct even though on screen does

Closed this issue · 3 comments

Basic latin text exports to PDF fine but diacritics and reordered characters in a cluster do not export to PDF cleanly.
In InDesign:
screenshot from 2014-02-27 10 19 56
From exported PDF:
screenshot from 2014-02-27 10 17 21

Further exploration indicates that the PDF export functionality of In Design 5.5 ssems to ignore any x or y adjustments made by IWaxGlyphsME::AddGlyphMEData(). If this is confrimed to be the case then this will make the ID5.5 PDF export useless for complex scripts, however EPS export works correctly and so may be a viable alternative. Also printing to a PDF printer may also work.

Trying to map all remaining glyphs to zero length glyph ranges in an attempt to describe a null character to glyph mapping works for display in ID. Make this null mapping point to the next glyph past range in the current cluster seems to improve matters quite a bit. Still not perfect though:
screenshot from 2014-02-27 14 40 32
P.S. x & y offsets are still being ignored afaict

It's confirmed that we get good output to PDF by printing to a PDF printer (tested with Fox IT Pro, I expect it'd work just as well with Adobe'd PDF printer too). This gives a good enough solution to this issue to allow me to return to it at a later date.