Bug 173606 True type fonts display the same effects in PDF[00]
True type fonts display the same effects in PDF[00] Build number: 2.2.0.v20070209-1530 Steps to reproduce: 1.insert a label and input "test fonts",font:Arial 2.insert a label and input "test fonts",font:Bodoni MT 3.insert a label and input "test fonts",font:Tahoma 4.insert a label and input "test fonts",font:&#23435;&#20307; 5.insert a label and input "test fonts",font:MingLiU Expected result: Fonts displays different effects Actual result: they display the same Error log: N/A
engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/layout/pdf/font/FontConfigReaderTest.java
int style = Font.NORMAL;
		if ( fontMappingManager.getMappedFont( c, fonts, style ) != null )
			return false;
		BaseFont font = fontMappingManager.getDefaultFont( fonts, style );
		return isIn( to, font.getFullFontName( ) );
	}
	private boolean isMappedTo( char c, String from, String to )
	{
		BaseFont font = fontMappingManager.getMappedFont( c,
				createCssValueList( from ), Font.NORMAL );
		return isIn( to, font.getFullFontName( ) );
	}
	private CSSValueList createCssValueList( String fontName )
	{
		return createCssValueList( new String[]{fontName} );
	}
	private CSSValueList createCssValueList( String[] fontNames )
	{
		ListValue result = new ListValue( );
		for ( int i = 0; i < fontNames.length; i++ )
		{
			StringValue value = new StringValue( CSSPrimitiveValue.CSS_STRING,
					fontNames[i] );
			result.append( value );
		}
		return result;
	}
	private boolean isIn( String fontName, String[][] familyFontName )
	{
		assert ( fontName != null );