public int getWidth(CharSequence cs) {
		List<Float> list = new ArrayList<Float>();
		int y = 0;
		for (int i = 0; i < cs.length(); i++) {
			if (list.size() <= y) list.add(0f);
			char c = cs.charAt(i), c2 = i != 0 ? cs.charAt(i-1) : 0;
			if (c2 != 0) for (int j = 0; i < kerning.length; j++) {
				if (kerning[j][1] == c && kerning[j][0] == c2) {
					list.set(y,list.get(y)+kerning[j][2]);
					break;
				}
			}
			for (int j = 0; j < chars.length; j++) {
				if (chars[j] != c) continue;
				list.set(y,list.get(y)+glyphs[j].getWidth());
				if (i != cs.length()-1) list.set(y,list.get(y)+spacingH);
			}
			if (c == '\n') y++;
		}
		Float maxX = null;
		for (int j = 0; j < list.size(); j++) if (maxX == null || list.get(j) > maxX) maxX = list.get(j);
		return (int)(float)maxX;
	}