gint len = mCharSetInfo->Convert(mCharSetInfo, aString, aLength, (char*) buf, sizeof(buf));
gint len = mCharSetInfo->Convert(mCharSetInfo, (XFontStruct*) GDK_FONT_XFONT(mFont), aString, aLength, (char*) buf, sizeof(buf));
nsFontGTKNormal::DrawString(nsRenderingContextGTK* aContext,                            nsDrawingSurfaceGTK* aSurface,                            nscoord aX, nscoord aY,                            const PRUnichar* aString, PRUint32 aLength){  XChar2b buf[512];  gint len = mCharSetInfo->Convert(mCharSetInfo, aString, aLength,    (char*) buf, sizeof(buf));  ::gdk_draw_text(aSurface->GetDrawable(), mFont, aContext->GetGC(), aX,    aY + mBaselineAdjust, (char*) buf, len);  return ::gdk_text_width(mFont, (char*) buf, len);}