fontInfo->mName.AssignWithConversion(aName);  fontInfo->mIsScalable = PR_FALSE; fontInfo->mSizes      = nsnull; aFontList->AppendElement(fontInfo); return fontInfo;
if (fontInfo) { fontInfo->mName.AssignWithConversion(aName);  fontInfo->mIsScalable = PR_FALSE; fontInfo->mSizes      = nsnull; aFontList->AppendElement(fontInfo); return fontInfo; } return nsnull;
static FontInfo * GetFontInfo(nsVoidArray * aFontList, char * aName){  nsAutoString name; name.AssignWithConversion(aName);  PRInt32 i;  PRInt32 cnt = aFontList->Count();  for (i=0;i<cnt;i++) {    FontInfo * fontInfo = (FontInfo *)aFontList->ElementAt(i);    if (fontInfo->mName.Equals(name)) {      return fontInfo;    }  }  FontInfo * fontInfo   = new FontInfo();  fontInfo->mName.AssignWithConversion(aName);  //printf("Adding [%s]\n", aName);fflush(stdout);   fontInfo->mIsScalable = PR_FALSE; // X fonts aren't scalable right??  fontInfo->mSizes      = nsnull;  aFontList->AppendElement(fontInfo);  return fontInfo;}