diff options
author | Sven Gothel <[email protected]> | 2013-06-12 11:13:38 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-06-12 11:13:38 +0200 |
commit | f72a2d6b9c6657011da2407b2a8c5b2197c0d31d (patch) | |
tree | 982347aa159bf2367199c5c31c52c2b6e35afb56 /src/jogl | |
parent | f50caa5241b5eef286e8c10b74b5297e5821da2b (diff) |
FontConstructor: Hide the exposed strings and add them in class API doc to minimize footprint. Review of Harvey.
Since accessing the static final exposed strings would trigger static initialization,
setting the properties this way would not work anyways (if not inlined ..).
Well.
Diffstat (limited to 'src/jogl')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/font/FontFactory.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java index 33a977bba..bbdfc0e9f 100644 --- a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java +++ b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java @@ -38,9 +38,17 @@ import jogamp.graph.font.FontConstructor; import jogamp.graph.font.JavaFontLoader; import jogamp.graph.font.UbuntuFontLoader; +/** + * The optional property <i>jogamp.graph.font.ctor</i> + * allows user to specify the {@link FontConstructor} implementation. + * <p> + * Default {@link FontConstructor} is {@link jogamp.graph.font.typecast.TypecastFontConstructor}, + * i.e. using our internal <i>typecast</i> branch. + * </p> + */ public class FontFactory { - public static final String FontConstructorPropKey = "jogamp.graph.font.ctor"; - public static final String DefaultFontConstructor = "jogamp.graph.font.typecast.TypecastFontConstructor"; + private static final String FontConstructorPropKey = "jogamp.graph.font.ctor"; + private static final String DefaultFontConstructor = "jogamp.graph.font.typecast.TypecastFontConstructor"; /** Ubuntu is the default font family */ public static final int UBUNTU = 0; |