DO NOT REPLY [Bug 51209] SVG text in AFP creates miscoded GOCA text

2012-01-06 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51209

--- Comment #2 from Luis Bernardo  2012-01-06 14:38:47 
UTC ---
Created attachment 28122
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28122
patch to address issue 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.


DO NOT REPLY [Bug 51209] SVG text in AFP creates miscoded GOCA text

2011-05-17 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=51209

--- Comment #1 from Mehdi Houshmand  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.