From d2d3720d940566608ea14b14cb4aeb5890ff21e1 Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Wed, 22 Feb 2012 03:36:18 +0100
Subject: FontSet (graph): get*(..) throws IOException - Proper passing and
 handling of IOException

---
 src/jogl/classes/jogamp/graph/font/JavaFontLoader.java | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/jogl/classes/jogamp/graph/font/JavaFontLoader.java')

diff --git a/src/jogl/classes/jogamp/graph/font/JavaFontLoader.java b/src/jogl/classes/jogamp/graph/font/JavaFontLoader.java
index 6b8260668..a00e9579c 100644
--- a/src/jogl/classes/jogamp/graph/font/JavaFontLoader.java
+++ b/src/jogl/classes/jogamp/graph/font/JavaFontLoader.java
@@ -81,11 +81,11 @@ public class JavaFontLoader implements FontSet {
         return 0 != ( bits & bit ) ;
     }
     
-    public Font getDefault() {
+    public Font getDefault() throws IOException {
         return get(FAMILY_REGULAR, 0) ; // Sans Serif Regular 
     }
     
-    public Font get(int family, int style)    {
+    public Font get(int family, int style) throws IOException {
         Font font = (Font)fontMap.get( ( family << 8 ) | style );
         if (font != null) {
             return font;
@@ -135,7 +135,7 @@ public class JavaFontLoader implements FontSet {
         return font;
     }
     
-    Font abspath(String fname, int family, int style) {
+    Font abspath(String fname, int family, int style) throws IOException {
         if(null == javaFontPath) {
             throw new GLException("java font path undefined");
         }
@@ -147,9 +147,9 @@ public class JavaFontLoader implements FontSet {
                 fontMap.put( ( family << 8 ) | style, f );
                 return f;
             }
-            throw new GLException(err);            
+            throw new IOException (err);            
         } catch (IOException ioe) {
-            throw new GLException(err, ioe);            
+            throw new IOException(err, ioe);            
         }
     }    
 }
-- 
cgit v1.2.3