test

Class FontToy

public class FontToy extends JPanel

Constructor Summary
FontToy(PDFFile pdf)
Creates a new instance of FontToy
Method Summary
voiddrawPoint(Graphics2D g, int num, float x, float y, boolean curvectl)
Draw and label a point
PDFFontgetCurrentFont()
get the current font
PDFGlyphgetCurrentGlyph()
get the current glyph
SetgetFonts()
get the set of associated fonts
static voidmain(String[] args)
voidpaint(Graphics g)
paint the current glyph on the screen
voidsetCurrentFont(PDFFont font)
set the current font
voidsetCurrentGlyph(PDFGlyph glyph)
set the current glyph

Constructor Detail

FontToy

public FontToy(PDFFile pdf)
Creates a new instance of FontToy

Method Detail

drawPoint

public void drawPoint(Graphics2D g, int num, float x, float y, boolean curvectl)
Draw and label a point

getCurrentFont

public PDFFont getCurrentFont()
get the current font

getCurrentGlyph

public PDFGlyph getCurrentGlyph()
get the current glyph

getFonts

public Set getFonts()
get the set of associated fonts

main

public static void main(String[] args)

Parameters: args the command line arguments

paint

public void paint(Graphics g)
paint the current glyph on the screen

setCurrentFont

public void setCurrentFont(PDFFont font)
set the current font

setCurrentGlyph

public void setCurrentGlyph(PDFGlyph glyph)
set the current glyph