void font() throws ScriptException {
		int shapeType = 0;
		int fontsize = 0;
		String fontface = "SansSerif";
		String fontstyle = "Plain";
		switch (statementLength) {
		case 5:
			if (statement[4].tok != Token.identifier)
				keywordExpected();
			fontstyle = (String) statement[4].value;
		case 4:
			if (statement[3].tok != Token.identifier)
				keywordExpected();
			fontface = (String) statement[3].value;
		case 3:
			if (statement[2].tok != Token.integer)
				integerExpected();
			fontsize = statement[2].intValue;
			shapeType = getShapeType(statement[1].tok);
			break;
		default:
			badArgumentCount();
		}
		Font3D font3d = viewer.getFont3D(fontface, fontstyle, fontsize);
		viewer.setShapeProperty(shapeType, "font", font3d);
	}