diff options
author | Peter Hancock <phancock@apache.org> | 2011-09-05 09:42:00 +0000 |
---|---|---|
committer | Peter Hancock <phancock@apache.org> | 2011-09-05 09:42:00 +0000 |
commit | de056bce77c27b3a93acd62c2fad0c6628bff6b4 (patch) | |
tree | 0b7558b1a7c40964a06b24423fcd53853efb2339 /src/java/org/apache/fop/render/afp | |
parent | 2b875243aca4c436a611bdc974f3eaf6c6800bb8 (diff) | |
download | xmlgraphics-fop-de056bce77c27b3a93acd62c2fad0c6628bff6b4.tar.gz xmlgraphics-fop-de056bce77c27b3a93acd62c2fad0c6628bff6b4.zip |
Bugzill#51530: Improved support for EBCDIC encoded double byte fonts fo AFP.
Submitted by: Mehdi Houshmand <med1985.at.gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1165223 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/afp')
-rw-r--r-- | src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java b/src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java index 8cc381c18..fc8d10508 100644 --- a/src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java +++ b/src/java/org/apache/fop/render/afp/AFPRendererConfigurator.java @@ -27,7 +27,6 @@ import java.util.List; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; - import org.apache.fop.afp.AFPResourceLevel; import org.apache.fop.afp.AFPResourceLevelDefaults; import org.apache.fop.afp.fonts.AFPFont; @@ -258,9 +257,11 @@ public class AFPRendererConfigurator extends PrintRendererConfigurator } String name = afpFontCfg.getAttribute("name", characterset); CharacterSet characterSet = null; + boolean ebcdicDBCS = afpFontCfg.getAttributeAsBoolean("ebcdic-dbcs", false); + try { - characterSet = CharacterSetBuilder.getDoubleByteInstance() - .build(characterset, codepage, encoding, accessor); + characterSet = CharacterSetBuilder.getDoubleByteInstance().buildDBCS(characterset, + codepage, encoding, ebcdicDBCS, accessor); } catch (IOException ioe) { toConfigurationException(codepage, characterset, ioe); } |