diff options
-rw-r--r-- | src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java index 408db555d..a9e5524c8 100644 --- a/src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java +++ b/src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java @@ -38,11 +38,9 @@ import javax.media.opengl.GLException; import jogamp.graph.font.FontConstructor; import jogamp.graph.font.typecast.ot.OTFontCollection; - import com.jogamp.common.util.IOUtil; import com.jogamp.graph.font.Font; - public class TypecastFontConstructor implements FontConstructor { public Font create(final File ffile) throws IOException { @@ -66,8 +64,8 @@ public class TypecastFontConstructor implements FontConstructor { File tf = null; int len=0; Font f = null; - try { - tf = File.createTempFile( "joglfont", ".ttf"); + try { + tf = IOUtil.createTempFile( "joglfont", ".ttf"); len = IOUtil.copyURL2File(furl, tf); if(len==0) { tf.delete(); |