Bug 140321 locale based font config file support
engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/layout/pdf/font/FontConfigReaderTest.java
assertEquals( "font alias in font-aliases", fontAliases
				.get( "font alias overridden" ) );
		assertEquals( "font alias in font-mappings", fontAliases
				.get( "font alias not overridden" ) );
		Map compositeFonts = fontMappingManager.getCompositeFonts( );
		assertEquals( 3, compositeFonts.size( ) );
		Map overriddenFont = (Map) compositeFonts.get( "font overridden" );
		assertEquals( 1, overriddenFont.size( ) );
		assertEquals( "font in composite-font", overriddenFont
				.get( new Integer( 0 ) ) );
		Map notOverriddenFont = (Map) compositeFonts
				.get( "font not overridden" );
		assertEquals( 1, notOverriddenFont.size( ) );
		assertEquals( "font in all-fonts", notOverriddenFont.get( new Integer(
				0 ) ) );
		Map allFonts = (Map) compositeFonts.get( "all-fonts" );
		assertEquals( 3, allFonts.size( ) );
		assertEquals( "Times-Roman", allFonts.get( new Integer( 0 ) ) );
		assertEquals( "Helvetica", allFonts.get( new Integer( 1 ) ) );
		assertEquals( "Helvetica", allFonts.get( "default" ) );
	}
	public void testFontConfigParser( ) throws IOException,
			FactoryConfigurationError, ParserConfigurationException,
			SAXException
	{
		fontMappingManager = getFontMappingManager( "fontsConfigParser.xml" );
		Map fontAliases = fontMappingManager.getFontAliases( );
		assertEquals( 6, fontAliases.size( ) );
		assertEquals( "Times-Roman", fontAliases.get( "test alias" ) );
		Map compositeFonts = fontMappingManager.getCompositeFonts( );