yloc = limit;
ycur = limit;
void newline(vWindow win) {    Dimension d = win.getCanvas().getSize();    FontMetrics m = win.getFontMetrics();    int leading = win.Leading();    int limit = d.height - m.getMaxDescent() - m.getLeading();	// shouldn't need getLeading, but even MaxDescent() sometimes lies    xloc = 0;			// set new text position    yloc += leading;    if (yloc > limit) {	// need to scroll upward	int shift = yloc - limit;	win.CopyArea(win, 0, shift, d.width, d.height, 0, 0);	yloc = limit;    }}