int fontSize = 0; Object size = handle.getPrivateStyle( ).getFontSize( ).getValue( ); if ( size instanceof DimensionValue ) { fontSize = DEUtil.getFontSize( ( (DimensionValue) size ).toString( ) ); } else { fontSize = Integer.valueOf( (String) DesignerConstants.fontMap.get( DEUtil.getFontSize( handle ) ) ) .intValue( ); }
int fontSize = DEUtil.getFontSizeIntValue(handle);
	protected Font getFont( )	{		StyleHandle styleHandle = ( (ReportItemHandle) getModel( ) ).getPrivateStyle( );		String family = (String) ( styleHandle.getFontFamilyHandle( ).getValue( ) );		String FontFamily = (String) DesignerConstants.familyMap.get( family );		if ( FontFamily == null )		{			FontFamily = family;		}		ReportItemHandle handle = (ReportItemHandle) getModel( );		int fontSize = 0;		Object size = handle.getPrivateStyle( ).getFontSize( ).getValue( );		if ( size instanceof DimensionValue )		{			fontSize = DEUtil.getFontSize( ( (DimensionValue) size ).toString( ) );		}		else		{			fontSize = Integer.valueOf( (String) DesignerConstants.fontMap.get( DEUtil.getFontSize( handle ) ) )					.intValue( );		}		int fontStyle = 0;		String fontWeight = styleHandle.getFontWeight( );		String style = styleHandle.getFontStyle( );		// Eclipse does not distinct ITALIC and OBLIQUE, so we treat OBLIQUE as		// ITATIC. And if font weight >= 700, deal with BOLD.		if ( fontWeight.equals( DesignChoiceConstants.FONT_WEIGHT_BOLD )				|| fontWeight.equals( DesignChoiceConstants.FONT_WEIGHT_BOLDER )				|| fontWeight.equals( DesignChoiceConstants.FONT_WEIGHT_700 )				|| fontWeight.equals( DesignChoiceConstants.FONT_WEIGHT_800 )				|| fontWeight.equals( DesignChoiceConstants.FONT_WEIGHT_900 ) )		{			fontStyle = fontStyle | SWT.BOLD;		}		if ( style.equals( DesignChoiceConstants.FONT_STYLE_ITALIC )				|| style.equals( DesignChoiceConstants.FONT_STYLE_OBLIQUE ) )		{			fontStyle = fontStyle | SWT.ITALIC;		}		Font font = FontManager.getFont( FontFamily, fontSize, fontStyle );		return font;	}