NS_IMETHODIMP SetFont(const nsFont& aFont, nsIAtom* aLangGroup) { nsIFontMetrics* newMetrics; nsresult rv = mContext->GetMetricsFor( aFont, aLangGroup, newMetrics ); if( NS_SUCCEEDED( rv ) ) { rv = SetFont( newMetrics ); NS_RELEASE( newMetrics ); } return rv; }
NS_IMETHODIMP nsRenderingContextPh :: SetFont(const nsFont& aFont) { PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRenderingContextPh::SetFont with nsFont\n"));  nsIFontMetrics* newMetrics; nsresult rv = mContext->GetMetricsFor(aFont, newMetrics); if (NS_SUCCEEDED(rv)) { rv = SetFont(newMetrics); NS_RELEASE(newMetrics); } return rv; }
	 NS_IMETHODIMP SetFont(const nsFont& aFont, nsIAtom* aLangGroup)		{ nsIFontMetrics* newMetrics;			nsresult rv = mContext->GetMetricsFor( aFont, aLangGroup, newMetrics );			if( NS_SUCCEEDED( rv ) ) {			  rv = SetFont( newMetrics );			  NS_RELEASE( newMetrics );				}			return rv;		}