FMFontFamily fontFamily = (FMFontFamily) aData;
FMFontFamily fontFamily = (FMFontFamily) NS_PTR_TO_INT32(aData);
EnumerateFont(nsHashKey *aKey, void *aData, void* closure){  EnumerateFontInfo* info = (EnumerateFontInfo*) closure;  PRUnichar** array = info->mArray;  int j = info->mCount;  PRBool match = PR_FALSE;#if TARGET_CARBON  // we need to match the cast of FMFontFamily in nsDeviceContextMac :: InitFontInfoList()  FMFontFamily fontFamily = (FMFontFamily) aData;  TextEncoding fontEncoding;  OSStatus status = ::FMGetFontFamilyTextEncoding(fontFamily, &fontEncoding);  if (noErr == status) {    ScriptCode script;    status = ::RevertTextEncodingToScriptInfo(fontEncoding, &script, nsnull, nsnull);    match = ((noErr == status) && (script == info->mScript));  }#else  short	fondID = (short) aData;  ScriptCode script = ::FontToScript(fondID);	match = (script == info->mScript) ;#endif  if (match) {	  PRUnichar* str = ToNewUnicode(((FontNameKey*)aKey)->mString);	  if (!str) {	    for (j = j - 1; j >= 0; j--) {	      nsMemory::Free(array[j]);	    }	    info->mIndex = 0;	    return PR_FALSE;	  }	  array[j] = str;	  info->mCount++;	}	info->mIndex++;  return PR_TRUE;}