From 3c09dd0bd232edd1c8a988dac28f2d9f6124a009 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Sun, 12 Nov 2006 16:40:24 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/fonts/truetype/FontFileReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- 2.39.5