From 628509b39ea7c16210315d191860511d6be4aa69 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 24 Jul 2014 22:15:40 +0300 Subject: Added possibility to load font using InputStream parameter --- src/jogl/classes/com/jogamp/graph/font/FontFactory.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/jogl/classes/com/jogamp/graph/font') 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); } -- cgit v1.2.3