phelps.awt.font

Class NFontType0

public class NFontType0 extends NFont implements Cloneable

Type 0 composite font, to the extent needed by PDF. PDF has exactly one descendant font. The methods that in other NFont's operate on encoded characters here instead operate on CIDs; Type 0 strings should first be normalized to CIDs with toCID before invoking other methods.

Version: $Revision: 1.3 $ $Date: 2003/12/14 08:12:55 $

Field Summary
static StringFORMAT
Constructor Summary
NFontType0(String base, NFont[] descendants)
Method Summary
booleancanDisplayEchar(char ech)
NFontType0deriveFont(float pointsize)
NFontType0deriveFont(AffineTransform at)
NFontType0deriveFont(CMap e2cid, CMap toUnicode)
voiddrawEstring(Graphics2D g, String estr, float x, float y, int mode)
doubleecharWidth(char ech)
StringgetFamily()
StringgetFormat()
Rectangle2DgetMaxCharBounds()
StringgetName()
intgetNumGlyphs()
chargetSpaceChar()
StringtoCID(String estr)

Field Detail

FORMAT

public static final String FORMAT

Constructor Detail

NFontType0

public NFontType0(String base, NFont[] descendants)

Method Detail

canDisplayEchar

public boolean canDisplayEchar(char ech)

deriveFont

public NFontType0 deriveFont(float pointsize)

deriveFont

public NFontType0 deriveFont(AffineTransform at)

deriveFont

public NFontType0 deriveFont(CMap e2cid, CMap toUnicode)

drawEstring

public void drawEstring(Graphics2D g, String estr, float x, float y, int mode)

echarWidth

public double echarWidth(char ech)

getFamily

public String getFamily()

getFormat

public String getFormat()

getMaxCharBounds

public Rectangle2D getMaxCharBounds()

getName

public String getName()

getNumGlyphs

public int getNumGlyphs()

getSpaceChar

public char getSpaceChar()

toCID

public String toCID(String estr)