aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/graph/font
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/jogamp/graph/font')
-rw-r--r--src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java5
-rw-r--r--src/jogl/classes/jogamp/graph/font/typecast/TypecastFontConstructor.java2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java b/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java
index 31990af37..572955fd3 100644
--- a/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java
+++ b/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java
@@ -31,10 +31,11 @@ import java.io.IOException;
import javax.media.opengl.GLException;
import com.jogamp.common.util.IntObjectHashMap;
+import com.jogamp.common.util.IOUtil;
+
import com.jogamp.graph.font.Font;
import com.jogamp.graph.font.FontSet;
import com.jogamp.graph.font.FontFactory;
-import com.jogamp.opengl.util.Locator;
import java.net.URL;
public class UbuntuFontLoader implements FontSet {
@@ -121,7 +122,7 @@ public class UbuntuFontLoader implements FontSet {
Font abspath(String fname, int family, int style) {
final String err = "Problem loading font "+fname+", stream "+relPath+fname;
try {
- URL url = Locator.getResource(UbuntuFontLoader.class, relPath+fname);
+ URL url = IOUtil.getResource(UbuntuFontLoader.class, relPath+fname);
if(null == url) {
throw new GLException(err);
}
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");