multivalent.std.adaptor.pdf

Class FontType3

public class FontType3 extends FontPDF

Paints glyphs for a Type 3 font. It's a cross between java.awt.Font and java.awt.font.GlyphVector.

Version: $Revision: 1.13 $ $Date: 2003/10/27 14:20:07 $

Constructor Summary
FontType3(Dict fontdict, double pointsize, float size, AffineTransform Tm, Dict page, PDF pdf, PDFReader pdfr)
Method Summary
FontPDFderiveFont(double pointsize, float size, AffineTransform Tm)
doublegetAdvance(char ch)
NodegetGlyph(char ch)
doublemeasureText(StringBuffer txt8, int s, int e)
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.

Constructor Detail

FontType3

public FontType3(Dict fontdict, double pointsize, float size, AffineTransform Tm, Dict page, PDF pdf, PDFReader pdfr)

Method Detail

deriveFont

public FontPDF deriveFont(double pointsize, float size, AffineTransform Tm)

getAdvance

public double getAdvance(char ch)

getGlyph

public Node getGlyph(char ch)

measureText

public double measureText(StringBuffer txt8, int s, int e)

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 design -- they should have a local /Resources.)