NS_IMETHODIMP nsRenderingContextPh :: GetWidth(const nsString& aString, nscoord& aWidth, PRInt32 *aFontID) { #if 0  char *str = aString.ToNewCString(); PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRenderingContextPh::GetWidth5 aString=<%s>\n", str)); delete [] str; #endif  nsresult ret_code;  ret_code = GetWidth(aString.GetUnicode(), aString.Length(), aWidth, aFontID);   if (nsnull != aFontID) *aFontID = 0;  PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRenderingContextPh::GetWidth5  aWidth=<%d> ret_code=<%d>\n", aWidth, ret_code)); return ret_code; }
NS_IMETHODIMP GetWidth(PRUnichar aC, nscoord& aWidth, PRInt32 *aFontID) {  PRUnichar buf[2]; buf[0] = aC; buf[1] = nsnull; return GetWidth( buf, 1, aWidth, aFontID ); }
NS_IMETHODIMP nsRenderingContextPh :: GetWidth(const nsString& aString, nscoord& aWidth, PRInt32 *aFontID){#if 0  /* DEBUG ONLY */  char *str = aString.ToNewCString();  PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRenderingContextPh::GetWidth5 aString=<%s>\n", str));  delete [] str;#endif  nsresult ret_code;  ret_code = GetWidth(aString.GetUnicode(), aString.Length(), aWidth, aFontID);    /* What the heck? I copied this from Windows */  if (nsnull != aFontID)    *aFontID = 0;  PR_LOG(PhGfxLog, PR_LOG_DEBUG, ("nsRenderingContextPh::GetWidth5  aWidth=<%d> ret_code=<%d>\n", aWidth, ret_code));  return ret_code;}