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/src/org/eclipse/birt/report/engine/layout/pdf/font/FontMappingManager.java
result = getBaseFont( fontName, c, fontStyle );
		}
		
		return result;
	}
	/**
	 * Gets font for the character which is not listed in "all-fonts" blocks.
	 * 
	 * @param fontFamilies
	 *            the font families used for the character
	 * @param fontStyle
	 *            the font style.
	 * @return the default font.
	 */
	public BaseFont getDefaultFont( CSSValueList fontFamilies, int fontStyle )
	{
		BaseFont result = null;
		for ( int i = 0; i < fontFamilies.getLength( ); i++ )
		{
			String fontFamilyName = fontFamilies.item( i ).getCssText( );
			String fontName = getMappedFont( fontFamilyName, defaultFonts );
			if ( fontName != null )
				result = createFont( fontName, fontStyle );
		}
		if ( result == null )
		{
			result = createFont( DEFAULT_FONT, fontStyle );
		}
		return result;
	}