printf("font %d %d %s= %s\n",script , type, aName,utf8);
PRINTF("font %d %d %s= %s\n",script , type, aName,utf8);
PrefEnumCallback(const char* aName, void* aClosure){		nsUnicodeMappingUtil* Self = (nsUnicodeMappingUtil*)aClosure;  nsCAutoString curPrefName(aName);    PRInt32 p1 = curPrefName.RFindChar('.', PR_TRUE);  if(-1==p1)  	return;  PRInt32 p2 = curPrefName.RFindChar('.', PR_TRUE, p1-1);  if(-1==p1)  	return;    nsCAutoString genName("");  nsCAutoString langGroup("");    curPrefName.Mid(langGroup,  p1+1, curPrefName.Length()-p1-1);  curPrefName.Mid(genName, p2+1, p1-p2-1);    ScriptCode script = Self->MapLangGroupToScriptCode(langGroup);  if(script >= (smPseudoTotalScripts))  {  	// Because of the pseudo-scripts of Unicode and User-Defined, we have to handle  	// the expanded ScriptCode value.  	return;  }  if((script == smRoman) && !langGroup.Equals(nsCAutoString("x-western"))) {  	// need special processing for t,r x-baltic, x-usr-defined  	return;  }    nsString genNameString ((const nsString &)genName);  nsGenericFontNameType type = Self->MapGenericFontNameType(genNameString);  if(type >= kUknownGenericFontName)  	return;  	  char* valueInUTF8 = nsnull;  gPref->CopyCharPref(aName, &valueInUTF8);  if((nsnull == valueInUTF8) || (PL_strlen(valueInUTF8) == 0))  {	  Recycle(valueInUTF8);  	return;  }  PRUnichar valueInUCS2[FACESIZE]= { 0 };  PRUnichar format[] = { '%', 's', 0 };  PRUint32 n = nsTextFormatter::snprintf(valueInUCS2, FACESIZE, format, valueInUTF8);  Recycle(valueInUTF8);  if(n == 0)  	return;       nsString *fontname = new nsAutoString(valueInUCS2);  if(nsnull == fontname)  	return;  short fontID=0;  if( (! nsDeviceContextMac::GetMacFontNumber(*fontname, fontID)) ||  	  ((script < smUninterp) && (::FontToScript(fontID) != script)))  {  	nsString::Recycle(fontname);  	return;  }  if( Self->mGenericFontMapping[script][type] )  	nsString::Recycle(Self->mGenericFontMapping[script][type]);  Self->mGenericFontMapping[script][type] = fontname;#ifdef DEBUG_ftang_font  char* utf8 = fontname->ToNewUTF8String();  printf("font %d %d %s= %s\n",script , type, aName,utf8);  Recycle(utf8); #endif}