rem: { pref.SetUnicharPref( fontPrefString, dataObject.languageData[language].types[type] ); } 
add: pref.SetUnicharPref( fontPrefString, dataObject.languageData[language].types[type] ); 
context: function saveFontPrefs()  {    // if saveState function is available, assume can call it.    // why is this extra qualification required?!!!!    if( top.hPrefWindow.wsm.contentArea.saveState )      {        saveState();        parent.hPrefWindow.wsm.dataManager.pageData["chrome://pref/content/pref-fonts.xul"] = GetFields();      }          // saving font prefs    var dataObject = parent.hPrefWindow.wsm.dataManager.pageData["chrome://pref/content/pref-fonts.xul"];    var pref = parent.hPrefWindow.pref;    for( var language in dataObject.languageData )      {        for( var type in dataObject.languageData[language].types )          {            var fontPrefString = "font.name." + type + "." + language;            var currValue = "";            try               {                currValue = pref.CopyUnicharPref( fontPrefString );              }            catch(e)              {              }            if( currValue != dataObject.languageData[language].types[type] )              {                pref.SetUnicharPref( fontPrefString, dataObject.languageData[language].types[type] );              }          }        var variableSizePref = "font.size.variable." + language;        var fixedSizePref = "font.size.fixed." + language;        var currVariableSize = 12, currFixedSize = 12;        try           {            currVariableSize = pref.GetIntPref( variableSizePref );            currFixedSize = pref.GetIntPref( fixedSizePref );          }        catch(e)          {          }        if( currVariableSize != dataObject.languageData[language].variableSize )          pref.SetIntPref( variableSizePref, dataObject.languageData[language].variableSize );        if( currFixedSize != dataObject.languageData[language].fixedSize )          pref.SetIntPref( fixedSizePref, dataObject.languageData[language].fixedSize );                  }    // font scaling     var fontDPI       = parseInt( dataObject.fontDPI );    var documentFonts = dataObject.useDocFonts;    var defaultFont   = dataObject.defaultFont;        try      {        var currDPI = pref.GetIntPref( "browser.display.screen_resolution" );        var currFonts = pref.GetIntPref( "browser.display.use_document_fonts" );        var currDefault = pref.CopyUnicharPref( "font.default" );      }    catch(e)      {      }    if( currDPI != fontDPI )      pref.SetIntPref( "browser.display.screen_resolution", fontDPI );    if( currFonts != documentFonts )      pref.SetIntPref( "browser.display.use_document_fonts", documentFonts );    if( currDefault != defaultFont )      {        dump("*** defaultFont = " + defaultFont + "\n");        pref.SetUnicharPref( "font.default", defaultFont );      }  }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/5021cc43a96424ba9fbe32577c596d30e35b3690/pref-fonts.js/buggy/xpfe/components/prefwindow/resources/content/pref-fonts.js