Bug 28638 [Preferences] Import Preferences: Crashes on eclipse
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java
}
	/**
	 * Adds a property change listener to this registry.
	 *
	 * @param listener a property change listener
	 */
	public void addListener(IPropertyChangeListener listener) {
		listeners.add(listener);
	}
	/**
	 * Find the first valid fontData in the provided list. 
	 * If none are valid return the first one regardless.
	 * If the list is empty return null.
	 * Return null if one cannot be found.
	 * @deprecated use bestDataArray in order to support 
	 * Motif multiple entry fonts.
	 */
	public FontData bestData(FontData[] fonts, Display display) {
		for (int i = 0; i < fonts.length; i++) {
			FontData fd = fonts[i];
			if (fd == null)
				break;
			FontData[] fixedFonts = display.getFontList(fd.getName(), false);
			if (isFixedFont(fixedFonts, fd)) {
				return fd;
			}
			FontData[] scalableFonts = display.getFontList(fd.getName(), true);
			if (scalableFonts.length > 0) {
				return fd;
			}