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