diff options
author | Roman <Roman@Roman-NB> | 2014-07-24 22:15:40 +0300 |
---|---|---|
committer | Roman <Roman@Roman-NB> | 2014-07-24 22:15:40 +0300 |
commit | 628509b39ea7c16210315d191860511d6be4aa69 (patch) | |
tree | 9f612e4ba70f00ab9a8673273ca7ff9c057ec310 /src/jogl/classes/com/jogamp/graph | |
parent | 37760af388303834e359703aad9562ce6165845f (diff) |
Added possibility to load font using InputStream parameter
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
-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); } |