org.xith3d.ui.text2d
Class Font2D

java.lang.Object
  extended by org.xith3d.ui.text2d.Font2D

public class Font2D
extends java.lang.Object

Abstraction of UI fonts.


Constructor Summary
Font2D(java.awt.Font font)
           
Font2D(java.lang.String fontName, FontStyle style, int size)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          
 CharIndex getCharIndex()
           
 java.nio.charset.Charset getCharset()
           
 org.openmali.types.twodee.Sized2iRO getCharSize(char ch)
           
 java.lang.String getFamily()
           
 java.awt.Font getFont()
           
static ASCIITexture getFontTexture(java.awt.Font font)
           
 java.lang.String getName()
           
 int getSize()
           
 FontStyle getStyle()
           
 ASCIITexture getTexture()
           
 int hashCode()
          
 boolean isBold()
           
 boolean isItalic()
           
 boolean isMonospace()
           
 boolean isPlain()
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Font2D

public Font2D(java.awt.Font font)

Font2D

public Font2D(java.lang.String fontName,
              FontStyle style,
              int size)
Method Detail

getFontTexture

public static final ASCIITexture getFontTexture(java.awt.Font font)

getFont

public final java.awt.Font getFont()

getFamily

public final java.lang.String getFamily()

getName

public final java.lang.String getName()

isPlain

public final boolean isPlain()

isItalic

public final boolean isItalic()

isBold

public final boolean isBold()

isMonospace

public final boolean isMonospace()

getStyle

public final FontStyle getStyle()

getSize

public final int getSize()

getTexture

public ASCIITexture getTexture()

getCharIndex

public final CharIndex getCharIndex()

getCharset

public final java.nio.charset.Charset getCharset()

getCharSize

public final org.openmali.types.twodee.Sized2iRO getCharSize(char ch)

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object