phelps.awt.font
public abstract class NFont extends Object
java.awt.Graphics
treats java.awt.Font
as a special case graphical primitive,
so subclasses aren't kosher. This class takes the graphics canvas as a parameter to drawing,
so we can have subclasses for not only Type 1 and TrueType, but also Type 3, Type 0, OpenType, and so on.
Version: $Revision$ $Date$
Method Summary | |
---|---|
abstract void | drawString(Graphics2D g, String str, int x, int y) |
abstract void | drawString(String s, float x, float y) |
abstract float | getSize2D() |
abstract Rectangle2D | getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc) |