xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51209] SVG text in AFP creates miscoded GOCA text
Date Tue, 17 May 2011 13:07:49 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51209

--- Comment #1 from Mehdi Houshmand <med1985@gmail.com> 2011-05-17 13:07:49 UTC ---
To add to this, if you wish to produce the correctly rendered AFP, you can
change the EBCDIC encoding scheme to "CP500". This can be done by changing
o.a.f.afp.goca.GraphicsCharacterString.getStringAsBytes() from:


    private byte[] getStringAsBytes() throws UnsupportedEncodingException {
        return str.getBytes(AFPConstants.EBCIDIC_ENCODING);
    }

To:

    private byte[] getStringAsBytes() throws UnsupportedEncodingException {
        return str.getBytes("Cp500");
    }

This will provide the correct encoding scheme for Helvetica ONLY and render the
FO properly. Though obviously this doesn't address the larger issue already
described.

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

Mime
View raw message