XChar2b buf[512]; gint len = mCharSetInfo->Convert(mCharSetInfo, aString, aLength, (char*) buf, sizeof(buf)); return ::gdk_text_width(mFont, (char*) buf, len);
char buf[1024]; PRUint32 len = Convert(aString, aLength, buf, sizeof(buf));  return ::gdk_text_width(mFont, buf, len);
nsFontGTKNormal::GetWidth(const PRUnichar* aString, PRUint32 aLength){  XChar2b buf[512];  gint len = mCharSetInfo->Convert(mCharSetInfo, aString, aLength,    (char*) buf, sizeof(buf));  return ::gdk_text_width(mFont, (char*) buf, len);}