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
fontEncoding.put( BaseFont.SYMBOL, BaseFont.WINANSI );
		fontEncoding.put( BaseFont.ZAPFDINGBATS, BaseFont.WINANSI );
		fontEncoding.put( "Times", BaseFont.WINANSI ); 
	}
	/**
	 * Gets the index of the FontMappings array for the given character.
	 * 
	 * @param c
	 *            the character.
	 * @return the index.
	 */
	private int getBlockIndex( char c )
	{
		int low = 0;
		int high = UNICODE_BLOCK_NUMBER - 1;
		while ( low <= high )
		{
			int mid = ( low + high ) / 2;
			int minVal = blockEdges[mid * 2];
			int maxVal = blockEdges[mid * 2 + 1];
			if ( c < minVal )
				high = mid - 1;
			else if ( c > maxVal )
				low = mid + 1;
			else
				return mid;
		}
		return -1;
	}
	/**