nsFontXlibUserDefined::GetWidth(const PRUnichar* aString, PRUint32 aLength)
nsFontXlibSubstitute::GetWidth(const PRUnichar* aString, PRUint32 aLength)
nsFontXlibUserDefined::GetWidth(const PRUnichar* aString, PRUint32 aLength){  char buf[1024];  char *p;  PRInt32 bufLen;  ENCODER_BUFFER_ALLOC_IF_NEEDED(p, mFontMetricsContext->mUserDefinedConverter,                         aString, aLength, buf, sizeof(buf), bufLen);  PRUint32 len = Convert(aString, aLength, p, bufLen);  int outWidth;  if (mXFont->IsSingleByte())    outWidth = mXFont->TextWidth8(p, len);  else    outWidth = mXFont->TextWidth16((const XChar2b*)p, len/2);  ENCODER_BUFFER_FREE_IF_NEEDED(p, buf);  return outWidth;}