} mXFont = aFont->GetXFont(); mCCMap = mFontMetricsContext->mUserDefinedCCMap; mName = aFont->mName;  return PR_TRUE;
if (regcomp(mFontRejectRegEx, fbpattern.get(), REG_EXTENDED|REG_NOSUB) != REG_OK) { PR_LOG(FontMetricsXlibLM, PR_LOG_DEBUG, ("Invalid rejectfontpattern '%s'\n", fbpattern.get())); BANNED_FONT_PRINTF(("Invalid font.x11.rejectfontpattern '%s'", fbpattern.get())); delete mFontRejectRegEx; mFontRejectRegEx = nsnull;  return NS_ERROR_INVALID_ARG; } }  #ifdef USE_XPRINT if (mPrinterMode) { rv = mPref->GetCharPref("print.xprint.font.acceptfontpattern", getter_Copies(fbpattern)); } if (!mPrinterMode || NS_FAILED(rv)) { #endif  rv = mPref->GetCharPref("font.x11.acceptfontpattern", getter_Copies(fbpattern)); #ifdef USE_XPRINT } #endif  if (NS_SUCCEEDED(rv)) { mFontAcceptRegEx = new regex_t; if (!mFontAcceptRegEx) { return NS_ERROR_OUT_OF_MEMORY; }   if (regcomp(mFontAcceptRegEx, fbpattern.get(), REG_EXTENDED|REG_NOSUB) != REG_OK) { PR_LOG(FontMetricsXlibLM, PR_LOG_DEBUG, ("Invalid acceptfontpattern '%s'\n", fbpattern.get())); BANNED_FONT_PRINTF(("Invalid font.x11.acceptfontpattern '%s'", fbpattern.get())); delete mFontAcceptRegEx; mFontAcceptRegEx = nsnull;  return NS_ERROR_INVALID_ARG; } } #endif
nsFontXlibUserDefined::Init(nsFontXlib* aFont){  if (!aFont->GetXFont()) {    aFont->LoadFont();    if (!aFont->GetXFont()) {      mCCMap = mFontMetricsContext->mEmptyCCMap;      return PR_FALSE;    }  }  mXFont = aFont->GetXFont();  mCCMap = mFontMetricsContext->mUserDefinedCCMap;  mName = aFont->mName;  return PR_TRUE;}