nsAutoCharBuffer buffer; Convert(aString, aLength, buffer, &aLength); if (aLength) { NS_ExtTextOutA(aDC, this, aX, aY, 0, NULL, buffer.get(), aLength, NULL);
char str[1024]; int len = WideCharToMultiByte(mCodePage, 0, aString, aLength, str, sizeof(str), nsnull, nsnull); if (len) { ::ExtTextOutA(aDC, aX, aY, 0, NULL, str, len, NULL);
nsFontSubset::DrawString(HDC aDC, PRInt32 aX, PRInt32 aY,  const PRUnichar* aString, PRUint32 aLength){  nsAutoCharBuffer buffer;  Convert(aString, aLength, buffer, &aLength);  if (aLength) {    NS_ExtTextOutA(aDC, this, aX, aY, 0, NULL, buffer.get(), aLength, NULL);  }}