diff options
author | Sven Gothel <[email protected]> | 2012-10-31 19:43:55 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-31 19:43:55 +0100 |
commit | f92e5baaea9c15d655f19a3b8dc9101876991995 (patch) | |
tree | 8f08aee75c0fb76e53a7fc972d0a099a018bdedc /src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java | |
parent | 451faa16651a85bab92e11d12de48e4b195904ba (diff) |
*FontLoader: Order fields in init-order, make private.
Diffstat (limited to 'src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java')
-rw-r--r-- | src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java b/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java index 0772cc47f..c4c580290 100644 --- a/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java +++ b/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java @@ -40,9 +40,14 @@ import java.net.URLConnection; public class UbuntuFontLoader implements FontSet { - final static FontSet fontLoader = new UbuntuFontLoader(); + // FIXME: Add cache size to limit memory usage + private static final IntObjectHashMap fontMap = new IntObjectHashMap(); + + private static final String relPath = "fonts/ubuntu/" ; + + private static final FontSet fontLoader = new UbuntuFontLoader(); - public static FontSet get() { + public static final FontSet get() { return fontLoader; } @@ -59,14 +64,9 @@ public class UbuntuFontLoader implements FontSet { }; - final static String relPath = "fonts/ubuntu/" ; - private UbuntuFontLoader() { } - // FIXME: Add cache size to limit memory usage - static final IntObjectHashMap fontMap = new IntObjectHashMap(); - static boolean is(int bits, int bit) { return 0 != ( bits & bit ) ; } |