private Font resolveFont(Node fontNode) throws RrdException {
		validateTagsOnlyOnce(fontNode, new String[] {"name", "style", "size"});
        String name = getChildValue(fontNode, "name");
		String style = getChildValue(fontNode, "style");
		int size = getChildValueAsInt(fontNode, "size");
		int stl = Font.PLAIN;
		if(style.equalsIgnoreCase("BOLD")) {
			stl = Font.BOLD;
		}
		else if(style.equalsIgnoreCase("ITALIC")) {
			stl = Font.ITALIC;
		}
		else if(style.equalsIgnoreCase("BOLDITALIC") ||
			style.equalsIgnoreCase("ITALICBOLD") ||
			style.equalsIgnoreCase("BOLD ITALIC") ||
			style.equalsIgnoreCase("ITALIC BOLD")) {
			stl = Font.ITALIC + Font.BOLD;
		}
		return new Font(name, stl, size);
	}