Bug 164601 It takes ages to display a report with label of very large font size.
Description: It takes ages to display a report with label of very large font size. Steps to reproduce: 1. Insert two labels 2. Set one font weight to 100 and the other to 900 3. Preview in pdf/html Expected result: Show different weight. Actual result: In html, you can see font-weight effect In pdf, the report never displayed. PS.If I change the font size to a small number, say 20, the report in pdf is generated immediated.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFAbstractLM.java
if ( units.equals( EngineIRConstants.UNITS_PT )
					|| units.equals( EngineIRConstants.UNITS_CM )
					|| units.equals( EngineIRConstants.UNITS_MM )
					|| units.equals( EngineIRConstants.UNITS_PC )
					|| units.equals( EngineIRConstants.UNITS_IN ) )
			{
				double point = d.convertTo( EngineIRConstants.UNITS_PT ) * 1000;
				return (int) point;
			}
			else if ( units.equals( EngineIRConstants.UNITS_PX ) )
			{
				double point = d.getMeasure( ) / 72.0d * 72000d;
				return (int) point;
			}
			else if ( units.equals( EngineIRConstants.UNITS_PERCENTAGE ) )
			{
				double point = referenceLength * d.getMeasure( )/100.0;
				return (int) point;
			}
		}
		catch ( Exception e )
		{
			logger.log( Level.WARNING, e.getLocalizedMessage( ) );
			return 0;
		}
		return 0;
	}
	protected int getDimensionValue( CSSValue value )
	{
		return getDimensionValue( value, 0 );