From: Jeremias Maerki Date: Sun, 12 Nov 2006 16:40:24 +0000 (+0000) Subject: Improve compatibility with Apache Harmony: X-Git-Tag: fop-0_93~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3c09dd0bd232edd1c8a988dac28f2d9f6124a009;p=xmlgraphics-fop.git Improve compatibility with Apache Harmony: UnicodeBig does the same as UTF-16BE on read (marker is optional, defaults to big endian). "UnicodeBig" does not seem to be available in Harmony, yet. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@473986 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fonts/truetype/FontFileReader.java b/src/java/org/apache/fop/fonts/truetype/FontFileReader.java index 930504752..4f906a006 100644 --- a/src/java/org/apache/fop/fonts/truetype/FontFileReader.java +++ b/src/java/org/apache/fop/fonts/truetype/FontFileReader.java @@ -306,7 +306,7 @@ public class FontFileReader { current += len; final String encoding; if ((tmp.length > 0) && (tmp[0] == 0)) { - encoding = "UnicodeBig"; + encoding = "UTF-16BE"; } else { encoding = "ISO-8859-1"; }