From f72a2d6b9c6657011da2407b2a8c5b2197c0d31d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 12 Jun 2013 11:13:38 +0200 Subject: 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. --- src/jogl/classes/com/jogamp/graph/font/FontFactory.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/com') 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 jogamp.graph.font.ctor + * allows user to specify the {@link FontConstructor} implementation. + *

+ * Default {@link FontConstructor} is {@link jogamp.graph.font.typecast.TypecastFontConstructor}, + * i.e. using our internal typecast branch. + *

+ */ 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; -- cgit v1.2.3