public static boolean isValidFontName(String name) {
		for (String element : GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()) {
			if (element.equalsIgnoreCase(name)) {
				return true;
			}
		}
		return false;
	}