import com.stevesoft.phreida.*; import java.awt.*; import java.io.*; public class Test2 { public static void main(String[] args) throws Exception { // Create the graphics object. Page size is about the // same as a paperback novel. PGraphics pg = new PGraphics("test2.pdf",0,0,300,460); // Determine how well font metrics work by breaking // up the string in different ways. Font f = new Font("Arial",Font.PLAIN,10); pg.setFont(f); FontMetrics fm = pg.getFontMetrics(f); int border = 1; int h = fm.getAscent()+fm.getDescent(); int lead = fm.getLeading(); String str = "Hello, world"; for(int i=1;i