aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-28 17:15:06 +0200
committerSven Gothel <[email protected]>2011-09-28 17:15:06 +0200
commit7fe2ec7b57d76f5b0e45a2382cb374073758cecc (patch)
tree1752de02360a81126c25b4e1041f65dc3e016eee /src
parentf4730179a4436dff7282bc42bc6aa58fb5fb63b5 (diff)
TypecastFontConstructor: Use IOUtil's createTempFile() to comfort Android
Diffstat (limited to 'src')
-rw-r--r--src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java6
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();