diff options
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/FontFactory.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java index db775e8dc..cfd06cf6c 100644 --- a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java +++ b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java @@ -29,6 +29,7 @@ package com.jogamp.graph.font; import java.io.File; import java.io.IOException; +import java.io.InputStream; import java.net.URI; import java.net.URLConnection; @@ -91,6 +92,10 @@ public class FontFactory { return fontConstr.create(file); } + public static final Font get(final InputStream stream) throws IOException { + return fontConstr.create(stream); + } + public static final Font get(final URLConnection conn) throws IOException { return fontConstr.create(conn); } |