phelps.awt.font

Class NFontSimple

public abstract class NFontSimple extends NFont

Superclass for "simple" fonts, which use a single byte for character codes with names, such as Type 1 (but not Type 0).

Version: $Revision: 1.4 $ $Date: 2003/12/20 10:42:58 $

Field Summary
protected Rectangle2Dbbox_
left, bottom, right, top.
protected Encodingencoding_
protected intfirstch_
protected Encodingintrinsic_
Character names indexed by glyph id.
protected intlastch_
protected AffineTransformm_
Translation from glyph space to text space.
protected int[]newwidths_
Method Summary
NFontSimplederiveFont(int[] widths, int firstch)
Creates font with glyphs shaped horizontally to match passed widths (in character space).
NFontSimplederiveFont(Encoding encoding, CMap toUnicode)
Encodings are for fonts byte-addressed glyphs -- 256 or fewer active glyphs.
EncodinggetEncoding()
Rectangle2DgetMaxCharBounds()

Field Detail

bbox_

protected Rectangle2D bbox_
left, bottom, right, top.

encoding_

protected Encoding encoding_

firstch_

protected int firstch_

intrinsic_

protected Encoding intrinsic_
Character names indexed by glyph id.

lastch_

protected int lastch_

m_

protected AffineTransform m_
Translation from glyph space to text space.

newwidths_

protected int[] newwidths_

Method Detail

deriveFont

public NFontSimple deriveFont(int[] widths, int firstch)
Creates font with glyphs shaped horizontally to match passed widths (in character space). Used by PDF on substituted fonts.

deriveFont

public NFontSimple deriveFont(Encoding encoding, CMap toUnicode)
Encodings are for fonts byte-addressed glyphs -- 256 or fewer active glyphs.

getEncoding

public Encoding getEncoding()

getMaxCharBounds

public Rectangle2D getMaxCharBounds()