char buf[1024]; PRUint32 len = Convert(aString, aLength, buf, sizeof(buf));
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));
nsFontGTKUserDefined::DrawString(nsRenderingContextGTK* aContext,                                nsDrawingSurfaceGTK* aSurface,                                nscoord aX, nscoord aY,                                const PRUnichar* aString, PRUint32 aLength){  char buf[1024];  PRUint32 len = Convert(aString, aLength, buf, sizeof(buf));  GdkGC *gc = aContext->GetGC();  nsRenderingContextGTK::my_gdk_draw_text(aSurface->GetDrawable(), mFont, gc, aX,                                          aY + mBaselineAdjust, buf, len);  gdk_gc_unref(gc);  return ::gdk_text_width(mFont, buf, len);}