Bug 132097 Error show the DBCS String
BIRT Enablement Tests - Test Case 3: Preview a report in PDF Error show the DBCS String.(Simplified Chinese) Build: 20060309
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/font/FontConfigReader.java
{
			Node node = mappings.item(i);
			String name = getProperty(node, PROP_NAME);
			String fontFamily = getProperty(node, PROP_FONT_FAMILY);
			if (isValidValue(name) && isValidValue(fontFamily))
				fontMapping.put(name, fontFamily);
		}
	}
	
	private boolean isValidValue(String propertyName)
	{
		return (null!= propertyName && !"".equalsIgnoreCase(propertyName)); 
	}
	
	private String getProperty(Node node, String propertyName)
	{
		if (null == node)
			return null;
		NamedNodeMap atts = node.getAttributes();
		if (null != atts)
		{
			Node property = atts.getNamedItem(propertyName);
			if (null != property)
				return property.getNodeValue();
		}
		return null;
	}
	
}