private static TIntIntHashMap getWidthMap(Font font) {
		TIntIntHashMap map = WIDTH_MAP.get(font);
		if (map == null) {
			map = new TIntIntHashMap();
			WIDTH_MAP.put(font, map);
			FontMetrics fm = Fonts.getFontMetrics(font);
			for (int i = 32; i < 127; i++) {
				map.put(i, fm.charWidth((char) i));
			}
		}
		return map;
	}