From 4f3a757646d16cf18d4a41e67abf63411f35c300 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 4 May 2023 03:28:46 +0200 Subject: Graph FontFactor: Adopt to GlueGen commit 69d22df0a6132dbf8b88fd04090c0bc81129237f IOUtil.copyStream2File() changes --- src/jogl/classes/com/jogamp/graph/font/FontFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/classes/com/jogamp/graph') diff --git a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java index ac42274f6..9b9762a05 100644 --- a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java +++ b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java @@ -147,7 +147,7 @@ public class FontFactory { InputStream bis = null; try { tempFile[0] = IOUtil.createTempFile( "jogl.font", ".ttf", false); - streamLen[0] = IOUtil.copyStream2File(stream, tempFile[0], -1); + streamLen[0] = IOUtil.copyStream2File(stream, tempFile[0]); if( 0 == streamLen[0] ) { throw new IOException("Font stream has zero bytes"); } -- cgit v1.2.3