You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2011/05/17 15:07:49 UTC
DO NOT REPLY [Bug 51209] SVG text in AFP creates miscoded GOCA text
https://issues.apache.org/bugzilla/show_bug.cgi?id=51209
--- Comment #1 from Mehdi Houshmand <me...@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.