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
}
	private String getEncoding( String fontFamilyName )
	{
		String encoding = (String) fontEncoding.get( fontFamilyName );
		return ( null == encoding ) ? BaseFont.IDENTITY_H : encoding;
	}
	private HashMap baseFonts = new HashMap( );
	/**
	 * Creates iText BaseFont with the given font family name.
	 * 
	 * @param ffn
	 *            the specified font family name.
	 * @param encoding
	 *            the encoding for the font.
	 * @return the created BaseFont.
	 */
	private BaseFont createFont( String ffn, int fontStyle )
	{
		String key = ffn + fontStyle;
		synchronized ( baseFonts )
		{
			BaseFont font = (BaseFont) baseFonts.get( key );
			if ( font == null )
			{
				String encoding = getEncoding( ffn );
				Font f = null;
				try
				{
					f = FontFactory.getFont( ffn, encoding,
							BaseFont.NOT_EMBEDDED, 14, fontStyle );