public String shrinkStringToFit(String input, int width, Font f) {
		while(input.length() > 1 && getTextWidth(f, input) > width) {
			input = input.substring(0, input.length() - 1);
		}

		return input;
	}