PrfQueryProfileString(HINI_USER, "PM_SystemFonts", "IconText", gIsWarp4 ? "9.WarpSans" : "8.Helv", szFontNameSize, MAXNAMEL);
if (!IsDBCS) { PrfQueryProfileString(HINI_USER, "PM_SystemFonts", "IconText", gIsWarp4 ? "9.WarpSans" : "8.Helv", szFontNameSize, MAXNAMEL); } else { PrfQueryProfileString(HINI_USER, "PM_SystemFonts", "IconText", gIsWarp4 ? "9.WarpSans Combined" : "8.Helv Combined", szFontNameSize, MAXNAMEL); }
nsresult GetSysFontInfo(nsSystemAttrID anID, nsFont* aFont) {  char szFontNameSize[MAXNAMEL];  switch (anID)  {    case eSystemAttr_Font_Caption:       PrfQueryProfileString(HINI_USER, "PM_SystemFonts", "WindowText", gIsWarp4 ? "9.WarpSans" : "8.Helv",                            szFontNameSize, MAXNAMEL);      break;    case eSystemAttr_Font_Icon:       PrfQueryProfileString(HINI_USER, "PM_SystemFonts", "IconText", gIsWarp4 ? "9.WarpSans" : "8.Helv",                            szFontNameSize, MAXNAMEL);      break;    case eSystemAttr_Font_Menu:       PrfQueryProfileString(HINI_USER, "PM_SystemFonts", "Menus", gIsWarp4 ? "9.WarpSans Bold" : "10.Helv",                            szFontNameSize, MAXNAMEL);      break;    case eSystemAttr_Font_MessageBox:       PrfQueryProfileString(HINI_USER, "PM_SystemFonts", "WindowText", gIsWarp4 ? "9.WarpSans" : "8.Helv",                            szFontNameSize, MAXNAMEL);      break;    case eSystemAttr_Font_SmallCaption:       PrfQueryProfileString(HINI_USER, "PM_SystemFonts", "WindowText", gIsWarp4 ? "9.WarpSans" : "8.Helv",                            szFontNameSize, MAXNAMEL);      break;    case eSystemAttr_Font_StatusBar:     case eSystemAttr_Font_Tooltips:       PrfQueryProfileString(HINI_USER, "PM_SystemFonts", "WindowText", gIsWarp4 ? "9.WarpSans" : "8.Helv",                            szFontNameSize, MAXNAMEL);      break;    case eSystemAttr_Font_Widget:    case eSystemAttr_Font_Window:      // css3    case eSystemAttr_Font_Document:    case eSystemAttr_Font_Workspace:    case eSystemAttr_Font_Desktop:    case eSystemAttr_Font_Info:    case eSystemAttr_Font_Dialog:    case eSystemAttr_Font_Button:    case eSystemAttr_Font_PullDownMenu:    case eSystemAttr_Font_List:    case eSystemAttr_Font_Field:      PrfQueryProfileString(HINI_USER, "PM_SystemFonts", "WindowText", gIsWarp4 ? "9.WarpSans" : "8.Helv",                            szFontNameSize, MAXNAMEL);      break;  } // switch   int pointSize;  char szFacename[FACESIZE];  sscanf( szFontNameSize, "%d.%s", &pointSize, szFacename);  aFont->name.AssignWithConversion(szFacename);  // Do Style  aFont->style = NS_FONT_STYLE_NORMAL;#if 0  if (ptrLogFont->lfItalic)  {    aFont->style = NS_FONT_STYLE_ITALIC;  }#endif  // XXX What about oblique?  aFont->variant = NS_FONT_VARIANT_NORMAL;  // Do Weight#if 0  aFont->weight = (ptrLogFont->lfWeight == FW_BOLD ?             NS_FONT_WEIGHT_BOLD : NS_FONT_WEIGHT_NORMAL);#else  aFont->weight = NS_FONT_WEIGHT_NORMAL;#endif  // Do decorations  aFont->decorations = NS_FONT_DECORATION_NONE;#if 0  if (ptrLogFont->lfUnderline)  {    aFont->decorations |= NS_FONT_DECORATION_UNDERLINE;  }  if (ptrLogFont->lfStrikeOut)  {    aFont->decorations |= NS_FONT_DECORATION_LINE_THROUGH;  }#endif  // Do Size  aFont->size = NSIntPointsToTwips(pointSize);  return NS_OK;}