int drawStrings(String astring, int startx, int starty, int yspacing) { return(drawStrings(astring, startx, starty, yspacing, "plain")); } int drawStrings(String astring, int startx, int starty, int yspacing, String boldtype) { String[] theTokens = splitTokens(astring, " "); int x = startx; int y = starty; if (boldtype.equals("plain")) textFont(myfont, 18); else textFont(myboldfont, 18); for (int words = 0; words < theTokens.length; words++) { String currentword = theTokens[words]; float wordwidth = textWidth(currentword + " "); if (x + wordwidth > 675) { x = startx; y += yspacing; } text(currentword, x, y); x += wordwidth; } return(x); }