jeremias 2002/11/18 02:44:42 Modified: src/org/apache/fop/fonts Tag: fop-0_20_2-maintain FontFileReader.java Log: Fixed Bug 14576 EOFException in TTFReader (fsize in FontFileReader is not set) Submitted by: [EMAIL PROTECTED] Revision Changes Path No revision No revision 1.3.2.2 +4 -2 xml-fop/src/org/apache/fop/fonts/FontFileReader.java Index: FontFileReader.java =================================================================== RCS file: /home/cvs/xml-fop/src/org/apache/fop/fonts/FontFileReader.java,v retrieving revision 1.3.2.1 retrieving revision 1.3.2.2 diff -u -r1.3.2.1 -r1.3.2.2 --- FontFileReader.java 8 Nov 2002 10:25:26 -0000 1.3.2.1 +++ FontFileReader.java 18 Nov 2002 10:44:41 -0000 1.3.2.2 @@ -1,6 +1,6 @@ /* * $Id$ - * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. + * Copyright (C) 2001-2002 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. */ @@ -30,6 +30,8 @@ try { copyStream(in, bout); this.file = bout.toByteArray(); + this.fsize = this.file.length; + this.current = 0; } finally { bout.close(); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]