edu.northwestern.at.wordhoard.model.text
Interface FontInfo

All Known Implementing Classes:
FontInfoImpl

public interface FontInfo

Font information.


Method Summary
 int getAscent()
          Gets the ascent.
 int getDescent()
          Gets the descent.
 java.awt.Font getFont()
          Gets the font.
 int getHeight()
          Gets the line height.
 int getLeading()
          Gets the leading.
 int stringWidth(java.lang.String str)
          Gets the width of a string.
 

Method Detail

getFont

java.awt.Font getFont()
Gets the font.

Returns:
The font.

getHeight

int getHeight()
Gets the line height.

Returns:
The line height in pixels.

getLeading

int getLeading()
Gets the leading.

Returns:
The leading.

getAscent

int getAscent()
Gets the ascent.

Returns:
The ascent in pixels.

getDescent

int getDescent()
Gets the descent.

Returns:
The descent in pixels.

stringWidth

int stringWidth(java.lang.String str)
Gets the width of a string.

Parameters:
str - String.
Returns:
Width of the string in pixels.