nsAutoCharBuffer buffer; Convert(aString, aLength, buffer, &aLength); if (aLength) {
char str[1024]; int len = WideCharToMultiByte(mCodePage, 0, aString, aLength, str, sizeof(str), nsnull, nsnull); if (len) {
nsFontSubset::GetWidth(HDC aDC, const PRUnichar* aString, PRUint32 aLength){  nsAutoCharBuffer buffer;  Convert(aString, aLength, buffer, &aLength);  if (aLength) {    SIZE size;    ::GetTextExtentPoint32A(aDC, buffer.get(), aLength, &size);    size.cx -= mOverhangCorrection;    return size.cx;  }  return 0;}