nsGlobalFont* newPointer = (nsGlobalFont*) PR_Realloc(gGlobalFonts, newSize * sizeof(nsGlobalFont));
nsGlobalFont* newPointer = (nsGlobalFont*) PR_Realloc(nsFontMetricsWin::gGlobalFonts, newSize*sizeof(nsGlobalFont));
static int CALLBACK enumProc(const LOGFONT* logFont, const TEXTMETRIC* metrics,  DWORD fontType, LPARAM closure){  // XXX do we really want to ignore non-TrueType fonts?  if (!(fontType & TRUETYPE_FONTTYPE)) {    //printf("rejecting %s\n", logFont->lfFaceName);    return 1;  }  // XXX make this smarter: don't add font to list if we already have a font  // with the same font signature -- erik  if (gGlobalFontsCount == gGlobalFontsAlloc) {    int newSize = 2 * (gGlobalFontsAlloc ? gGlobalFontsAlloc : 1);    nsGlobalFont* newPointer = (nsGlobalFont*) PR_Realloc(gGlobalFonts,      newSize * sizeof(nsGlobalFont));    if (newPointer) {      gGlobalFonts = newPointer;      gGlobalFontsAlloc = newSize;    }    else {      return 0;    }  }  nsGlobalFont* font = &gGlobalFonts[gGlobalFontsCount++];  // XXX do correct character encoding conversion here  font->name = new nsString(logFont->lfFaceName);  if (!font->name) {    gGlobalFontsCount--;    return 0;  }  font->map = nsnull;  font->logFont = *logFont;  return 1;}