if (nsMimeOutput::nsMimeMessageBodyDisplay == obj->options->format_out || nsMimeOutput::nsMimeMessagePrintOutput == obj->options->format_out) status = BeginMailNewsFont(obj, "mailnews.font.name.mono", "mailnews.size.fixed");
MimeInlineTextPlainFlowed_parse_begin (MimeObject *obj){  int status = ((MimeObjectClass*)&MIME_SUPERCLASS)->parse_begin(obj);  if (status < 0) return status;  char s[] = "";    status =  MimeObject_write(obj, s, 0, PR_TRUE); /* force out any separators... */  if(status<0) return status;  // Setup the data structure that is connected to the actual document  // Saved in a linked list in case this is called with several documents  // at the same time.  /* This memory is freed when parse_eof is called. So it better be! */  struct MimeInlineTextPlainFlowedExData *exdata =    (MimeInlineTextPlainFlowedExData *)PR_MALLOC(sizeof(struct MimeInlineTextPlainFlowedExData));  if(!exdata) return MIME_OUT_OF_MEMORY;  exdata->ownerobj = obj;  exdata->inflow=PR_FALSE;  exdata->fixedwidthfont=PR_FALSE;  exdata->quotelevel=0;  // Check the pref for fixed width font  nsresult rv;  NS_WITH_SERVICE(nsIPref, prefs, kPrefCID, &rv);   if (NS_SUCCEEDED(rv) && prefs)   {    rv=prefs->GetBoolPref(PREF_MAIL_FIXED_WIDTH_MESSAGES, &(exdata->fixedwidthfont));    NS_ASSERTION(NS_SUCCEEDED(rv),"failed to get the mail.fixed_width_messages pref");  }  MimeInlineTextPlainFlowed *text = (MimeInlineTextPlainFlowed *) obj;    // Ok, first get the quoting settings.  text->mQuotedSizeSetting = 0;   // mail.quoted_size  text->mQuotedStyleSetting = 0;  // mail.quoted_style  text->mCitationColor = nsnull;  // mail.citation_color    if (prefs)  {    prefs->GetIntPref("mail.quoted_size", &(text->mQuotedSizeSetting));    prefs->GetIntPref("mail.quoted_style", &(text->mQuotedStyleSetting));    prefs->CopyCharPref("mail.citation_color", &(text->mCitationColor));  }  // Link it up.  exdata->next = MimeInlineTextPlainFlowedExDataList;  MimeInlineTextPlainFlowedExDataList = exdata;    // If we should use a fixed width font, emit  // a <div style="font-family:monospace">   DIDN'T WORK  // a <tt>  if(exdata->fixedwidthfont)    {    // *Don't work*   status = MimeObject_write(obj, "<div style=\"font-family=monospace\">", 35, PR_FALSE);    status = MimeObject_write(obj, "<tt>", 4, PR_FALSE);    if(status<0) return status;  }    return 0;}