summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/graph
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/jogamp/graph')
-rw-r--r--src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java
index 179e4ed2c..cb0d1a372 100644
--- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java
+++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java
@@ -56,7 +56,7 @@ public class TypecastFontConstructor implements FontConstructor {
public Font create(URL furl) throws IOException {
final File tf = File.createTempFile( "joglfont", ".ttf");
- final int len = IOUtil.copyURLToFile(furl, tf);
+ final int len = IOUtil.copyURL2File(furl, tf);
if(len==0) {
tf.delete();
throw new GLException("Font of stream "+furl+" was zero bytes");