Object fontSizeValue = handle.getPrivateStyle( ).getFontSize( ) .getValue( );
StyleHandle styleHandle = handle.getPrivateStyle( ); Object fontSizeValue = null; if(styleHandle !=null) { fontSizeValue = handle.getPrivateStyle( ).getFontSize( ) .getValue( ); }
	public static int getFontSizeIntValue( DesignElementHandle handle )	{		if ( !( handle instanceof ReportItemHandle ) )		{			if ( handle instanceof ModuleHandle )			{				// return 10.				String size = (String) DesignerConstants.fontMap						.get( DesignChoiceConstants.FONT_SIZE_MEDIUM );				return Integer.parseInt( size );			}			if ( handle instanceof GroupHandle )			{				handle = handle.getContainer( );			}		}		Object fontSizeValue = handle.getPrivateStyle( ).getFontSize( )				.getValue( );		if ( fontSizeValue instanceof DimensionValue )		{			// use parent's font size as the base size for converting sizeValue			// to a int value.			int size = getFontSizeIntValue( handle.getContainer( ) );			return (int) CSSUtil.convertToPoint( fontSizeValue, size );		}		else if ( fontSizeValue instanceof String )		{			String fontSize = (String) fontSizeValue;			if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_LARGER ) )			{				return getLargerFontSizeIntValue( handle.getContainer( ) );			}			else if ( fontSize.equals( DesignChoiceConstants.FONT_SIZE_SMALLER ) )			{				return getSmallerFontSizeIntValue( handle.getContainer( ) );			}			else			{				String size = (String) DesignerConstants.fontMap.get( fontSize );				return Integer.parseInt( size );			}		}		else		{			// return 10.			String size = (String) DesignerConstants.fontMap					.get( DesignChoiceConstants.FONT_SIZE_MEDIUM );			return Integer.parseInt( size );		}	}