[gs-bugs] [Bug 692365] Text advance goes in the wrong direction with a CIDFont
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Fri Jun 15 10:33:31 UTC 2012
http://bugs.ghostscript.com/show_bug.cgi?id=692365
--- Comment #10 from Chris Liddell <chris.liddell at artifex.com> 2012-06-15 10:33:29 UTC ---
Some further analysis:
For each glyph, we have to both consult the font WMode *and* check for vertical
metrics in the font dictionary - iff both WMode is "1" *and* vertical metrics
are available should we treat the glyph as writing vertically, otherwise, treat
it as a horizontal writing glyph.
I *think* the problem we have is that, in pdfwrite's scan_cmap_text(), we don't
check for vertical metrics as we process each glyph, so we're going solely on
WMode.
We can use "subfont->procs.glyph_info()" to check for vertical metrics, set a
transient WMode value based on that, which can solve the problem with this
file, but causes a few regressions in our test suite. I'm guessing that
pdfwrite is using the font WMode elsewhere in the glyph processing, but I'm
already way beyond my knowledge of pdfwrite......
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list