multivalent.std.adaptor.pdf

Class NFontType3

public class NFontType3 extends NFontSimple implements Cloneable

Type 3 font, with individual glyphs written in PDF.

Version: $Revision: 1.16 $ $Date: 2003/12/04 01:45:49 $

Field Summary
static StringFORMAT
Constructor Summary
NFontType3(Dict fontdict, PDF pdf)
Method Summary
booleancanDisplayEchar(char ech)
NFontType3deriveFont(float size)
NFontType3deriveFont(AffineTransform at)
voiddrawEstring(Graphics2D g, String estr, float x, float y, int mode)
Point2DecharAdvance(char ech)
StringgetFamily()
StringgetFormat()
StringgetName()
intgetNumGlyphs()
chargetSpaceChar()
voidsetPage(Dict page)
Type 3 fonts potentially need the /Resources dictionary for the current page, so set this before using this font on the page.

Field Detail

FORMAT

public static final String FORMAT

Constructor Detail

NFontType3

public NFontType3(Dict fontdict, PDF pdf)

Method Detail

canDisplayEchar

public boolean canDisplayEchar(char ech)

deriveFont

public NFontType3 deriveFont(float size)

deriveFont

public NFontType3 deriveFont(AffineTransform at)

drawEstring

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

echarAdvance

public Point2D echarAdvance(char ech)

getFamily

public String getFamily()

getFormat

public String getFormat()

getName

public String getName()

getNumGlyphs

public int getNumGlyphs()

getSpaceChar

public char getSpaceChar()

setPage

public void setPage(Dict page)
Type 3 fonts potentially need the /Resources dictionary for the current page, so set this before using this font on the page. (Yes, this is bad PDF -- the document should have a local /Resources.)