Skip to content

Commit

Permalink
FontConstructor: Hide the exposed strings and add them in class API d…
Browse files Browse the repository at this point in the history
…oc 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.
  • Loading branch information
sgothel committed Jun 12, 2013
1 parent f50caa5 commit f72a2d6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/jogl/classes/com/jogamp/graph/font/FontFactory.java
Expand Up @@ -38,9 +38,17 @@
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;
Expand Down

0 comments on commit f72a2d6

Please sign in to comment.