@@ -0,0 +1,1660 @@
+package jgame;%0A%0A/** A generic font specification for fonts on the different%0A* platforms.  It is based on the JRE platform, other platforms should do their%0A* best to translate it to something equivalent or use sensible defaults if%0A* there is nothing comparable. */%0Apublic class JGFont %7B%0A%0A%09public static final int PLAIN=0;%0A%09public static final int BOLD=1;%0A%09public static final int ITALIC=2;%0A%0A%09/** The font name can be a logical font name or a font face name. A%0A%09 * logical name must be either: Dialog, DialogInput, Monospaced, Serif, or%0A%09 * SansSerif. If name is null, the name of the new Font is set to the name%0A%09 * %22Default%22. */%0A%09public String name=%22Default%22;%0A%0A%09/** The style is an integer bitmask that may be PLAIN, or a bitwise union%0A%09 * of BOLD and/or ITALIC (for example, ITALIC or BOLD%7CITALIC). If the%0A%09 * style argument does not conform to one of the expected integer bitmasks%0A%09 * then the style is set to PLAIN. */%0A%09public int style=PLAIN;%0A%0A%09/** Font size is effectively pixel height. */%0A%09public double size;%0A%0A%09/** Optional object that represents the font on a particular platform.*/%0A%09public Object impl=null;%0A%0A%09/** Creates a new Font from the specified name, style and point size.%0A%09* This is a generic font specification for fonts on the different%0A%09* platforms.  %0A%09* @param name the font name%0A%09* @param style - the style constant for the Font%0A%09* @param size - the point size of the Font%0A%09*/%0A%09public JGFont(String name, int style, double size) %7B%0A%09%09if (name!=null) this.name=name;%0A%09%09this.style=style;%0A%09%09this.size=size;%0A%09%7D%0A%0A%09public int getSize() %7B return (int)size; %7D%0A%09public double getSize2D() %7B return size; %7D%0A%09public int getStyle() %7B return style; %7D%0A%7D%0A

Create JGFont.java