DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42109>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42109

           Summary: [PATCH] ZWSP works as backspace when font is embedded
           Product: Fop
           Version: 1.0dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pdf
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When fonts are embedded in the PDF, zero-width spaces have a backspace effect:
the text following the ZWSP is left-shifted by about one character's width, so
it partly overprints the preceding text. At the end of a text area containing
ZWSPs there's extra whitespace, up to the point where the text would have ended
had it been rendered correctly.

Observed with Times, Verdana and MSMincho, but not with Courier, and only if the
font is embedded in the PDF file. It makes no difference whether the metrics
file has an entry for ZWSP (8203d) or not.

Attached are a FO and a PDF file demonstrating the effect. I also attach a patch
that intercepts non-stretchable ZWSPs before they are written to the PDF stream.
This doesn't address the cause of the problem so it's probably not the best
solution, but at least it cures the disease. And there's no point in writing
zero-dimension areas to the PDF anyway.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to