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 HashMap fontEncoding = null;
	protected static Logger logger = Logger.getLogger( FontMappingManager.class
			.getName( ) );
	/**
	 * The array maintaining the font list which can display the character in
	 * the given unicode block.
	 */
	private Map[] fontNodes = new HashMap[UNICODE_BLOCK_NUMBER];
	private Map defaultFonts;
	FontMappingManager( )
	{
		initializeFontMapping( );
		initializeFontEncoding( );
		this.defaultFonts = new HashMap( );
	}
	protected void initializeFontMapping( )
	{
		fontMapping = new HashMap( );
		fontMapping.put( SERIF, DEFAULT_SERIF_FONT );
		fontMapping.put( SANS_SERIF, DEFAULT_SANS_SERIF_FONT );
		fontMapping.put( CURSIVE, DEFAULT_CURSIVE_FONT );
		fontMapping.put( MONOSPACE, DEFAULT_MONOSPACE_FONT );
		fontMapping.put( FANTASY, DEFAULT_FANTASY_FONT );
	}
	protected void initializeFontEncoding( )
	{
		fontEncoding = new HashMap( );
		fontEncoding.put( BaseFont.TIMES_ROMAN, BaseFont.WINANSI );
		fontEncoding.put( BaseFont.HELVETICA, BaseFont.WINANSI );
		fontEncoding.put( BaseFont.COURIER, BaseFont.WINANSI );